Function at 0x482770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov eax, dword [0x50a0b0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x68]
push esi
xor esi, esi
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
cmp word [ebx + 0x28], si
jne 0x482850
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
cmp dword [eax + 0x60], esi
jbe 0x482814
lea eax, [esp + 0x10]
push eax
push 4
call fcn.00418670
add esp, 8
cmp byte [ebx + 0x2b], 0
jne 0x4827ed
mov eax, dword [ebx + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4827ed
cmp esi, 5
jne 0x482c7c
jmp 0x482814
push dword [esp + 0x10]
push ebx
call fcn.0048d490
add esp, 8
cmp byte [ebx + 0x2b], 0
jne 0x48282e
mov eax, dword [ebx + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [ebx + 0x2b], 0
jne 0x48282e
mov eax, dword [ebx + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor edi, edi
mov word [ebx + 0x28], ax
inc edi
lea eax, [esp + 0x2c]
push edi
push 1
push eax
push ebx
call fcn.0048d520
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x482837
test esi, esi
jne 0x482c7c
mov edi, dword [ebx + 0x44]
mov dword [esp + 0x20], edi
push ebp
test edi, edi
jne 0x4829b5
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x54], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x55], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x56], al
mov byte [esp + 0x57], cl
mov ecx, dword [ebx + 0x68]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x58], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x59], al
mov eax, ecx
shr eax, 8
mov dword [esp + 0x4c], 0x82067f37
mov dword [esp + 0x50], 0x18e22d00
mov byte [esp + 0x5a], al
mov byte [esp + 0x5b], cl
test ecx, ecx
jne 0x4828cf
lea eax, [ebx + 0x54]
push eax
push 8
call fcn.00418670
add esp, 8
mov eax, dword [ebx + 0x54]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5c], eax
xor edx, edx
mov eax, dword [ebx + 0x58]
xor esi, esi
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x64]
cmp ecx, eax
jb 0x4828e5
mov ecx, esi
mov ebp, dword [esp + 0x78]
mov eax, ecx
mov dword [ebx + 0x50], edx
shr eax, 0x18
mov byte [esp + 0x64], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x65], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x66], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x68], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x69], al
mov eax, edx
shr eax, 8
mov dword [ebx + 0x4c], ecx
mov byte [esp + 0x6a], al
mov eax, dword [ebx + 8]
push 0
mov byte [esp + 0x6f], dl
lea edx, [esp + 0x50]
push 0
mov byte [esp + 0x6f], cl
mov dword [ebx + 0x24], ebp
mov byte [ebx + 0x41], 0
mov byte [ebx + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x28], esi
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x482c7b
cmp byte [ebx + 0x30], 0
mov eax, dword [esp + 0x88]
je 0x4829c0
test eax, eax
je 0x4829c0
mov ecx, dword [ebx + 8]
and eax, 0x13
push eax
push ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x4829b9
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004bf929
add esp, 0x60
ret
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x30], eax
cdq
mov dword [esp + 0x38], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x34], ebx
push eax
push ecx
push 0
push edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
call fcn.004bfcf0
mov ecx, dword [esp + 0x1c]
mov ebp, eax
add ebp, 0x20
mov dword [esp + 0x20], ecx
mov edi, edx
mov eax, ecx
adc edi, 0
test ecx, ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], edi
je 0x482a84
inc dword [esp + 0x24]
test ecx, ecx
je 0x482a3b
cmp dword [eax + 0xc], 0
jne 0x482a3b
mov ecx, dword [esp + 0x80]
jmp 0x482a3d
xor ecx, ecx
push edi
push ebp
push ecx
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0048d810
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x482c7b
mov eax, dword [esp + 0x20]
add ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
adc edi, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
test eax, eax
jne 0x482a24
mov edx, dword [esp + 0x38]
jmp 0x482a87
mov edx, dword [ebx + 8]
test ecx, ecx
je 0x482bce
mov ecx, dword [esp + 0x88]
test cl, 0x20
je 0x482b77
cmp byte [ebx + 0x31], 0
je 0x482b66
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x482ad5
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x482ac7
mov eax, 0x200
jmp 0x482ada
cmp eax, 0x10000
jle 0x482ada
mov eax, 0x10000
jmp 0x482ada
mov eax, 0x1000
cdq
mov ecx, eax
mov edi, edx
add ecx, ebp
push edx
adc edi, dword [esp + 0x1c]
sub ecx, 1
push eax
sbb edi, 0
mov dword [esp + 0x28], ecx
push edi
push ecx
call fcn.004bfd30
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
sbb edi, edx
mov dword [esp + 0x40], edi
cmp eax, edi
jg 0x482b77
jl 0x482b16
cmp ebp, ecx
jae 0x482b77
mov edi, dword [esp + 0x28]
lea ebx, [ebx]
push eax
push ebp
push dword [esp + 0x88]
lea eax, [esp + 0x40]
push edi
push eax
call fcn.0048d810
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x482c7b
mov eax, dword [esp + 0x30]
cdq
add ebp, eax
mov eax, dword [esp + 0x18]
adc eax, edx
inc dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x40]
jl 0x482b20
jg 0x482b77
cmp ebp, dword [esp + 0x3c]
jb 0x482b20
jmp 0x482b77
mov eax, dword [edx]
and ecx, 0x13
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov esi, eax
cmp byte [ebx + 0x2f], 0
je 0x482bd2
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jl 0x482bd2
jg 0x482b8c
test edi, edi
jb 0x482bd2
push dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
add eax, ebp
push 0
push eax
call fcn.004bfcf0
mov ecx, dword [ebx + 0x14]
add eax, 0x20
adc edx, 0
cmp edx, ecx
jl 0x482bbd
jg 0x482bb9
cmp eax, edi
jbe 0x482bbd
mov edi, eax
mov ecx, edx
push ecx
push edi
push ebx
call fcn.0048d0f0
add esp, 0xc
mov byte [ebx + 0x2f], 0
jmp 0x482bd6
xor ebp, ebp
jmp 0x482bd6
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edi, dword [ebx + 0x44]
test eax, eax
je 0x482c08
test esi, esi
jne 0x482c7b
push dword [eax + 0x14]
inc edi
push edi
push ebx
call fcn.0048c440
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x482be1
test esi, esi
jne 0x482c7b
lea esp, [esp]
test ebp, ebp
jle 0x482c40
mov eax, dword [esp + 0x28]
inc edi
dec ebp
push dword [eax + 0x14]
push edi
push ebx
call fcn.0048c440
mov esi, eax
add esp, 0xc
test esi, esi
je 0x482c10
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004bf929
add esp, 0x60
ret
mov ecx, dword [esp + 0x78]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [ebx + 0x44], edi
cmp dword [esp + 0x84], 0
mov word [ebx + 0x42], ax
je 0x482c7b
mov eax, dword [esp + 0x80]
inc dword [ebx + 0x3c]
push ebx
mov dword [ebx + 0x48], eax
call fcn.0048ce10
add esp, 4
mov dword [ebx + 0xc], edi
pop ebp
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bf929
add esp, 0x60
ret