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

Disassembly:
sub esp, 0x98
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0xac]
lea eax, [ebp + 0x28]
push eax
call dword [0x4c32d4]
test eax, eax
jne 0x487689
lea eax, [ebp + 0x38]
push eax
call dword [0x4c32e4]
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x487689
push eax
call dword [0x4c258c]
mov ecx, dword [0x4c0270]
mov dword [esp + 0x18], eax
mov ax, word [eax + 0xe]
push ecx
mov word [esp + 0x1a], ax
call dword [0x4c258c]
mov ebx, eax
cmp dword [ebp], 0
je 0x486eb7
mov eax, dword [ebp + 0x5c]
push eax
call dword [0x4c258c]
mov dword [esp + 0x80], eax
call fcn.004a7f30
mov eax, dword [eax + 4]
cmp word [eax + 0x116], 0
jne 0x486e7a
mov byte [esp + 0x15], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x14], 0
mov byte [esp + 0x12], 0x7f
jmp 0x486e8e
mov byte [esp + 0x15], 0xff
mov byte [esp + 0x12], 0x3f
xor eax, eax
mov byte [esp + 0x14], al
mov byte [esp + 0x13], al
cmp word [esp + 0x16], 0x18
jae 0x486eb7
lea eax, [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x1d]
push ecx
push edx
mov eax, dword [ebp + 0x58]
push eax
call fcn.004638c0
mov byte [esp + 0x29], al
add esp, 0x14
cmp dword [ebp + 4], 0
je 0x486f39
mov eax, dword [ebp + 0x64]
push eax
call dword [0x4c258c]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x486ed8
mov dword [ebp + 4], 0
jmp 0x486f39
mov eax, dword [ebp + 0x60]
push eax
call dword [0x4c258c]
mov dword [esp + 0x84], eax
mov eax, dword [0x4bff58]
push eax
call dword [0x4c258c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x486f1d
mov eax, dword [esp + 0x18]
mov cx, word [eax + 0xe]
cmp cx, 8
jbe 0x486f16
xor eax, eax
jmp 0x486f20
mov eax, 1
shl eax, cl
shl eax, 2
add eax, 0x28
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp], 0
jne 0x486f45
cmp dword [ebp + 4], 0
je 0x486f7a
mov eax, dword [0x4c0168]
push eax
call dword [0x4c258c]
mov dword [esp + 0x1c], eax
mov word [eax + 0xc], 1
mov word [eax + 0xe], 8
mov eax, 0x100
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], 0x28
cmp dword [0x4c0060], 0
je 0x486fe8
mov eax, dword [0x4c0060]
push eax
call dword [0x4c258c]
cmp word [0x4bff5c], 8
lea edx, [eax + 0x28]
mov dword [esp + 0x54], eax
jne 0x486fb4
xor ax, ax
mov byte [edx], al
inc edx
mov byte [edx], 0
inc ax
inc edx
cmp ax, 0x100
jl 0x486fa3
jmp 0x486fe8
xor ax, ax
movsx ecx, ax
inc ax
inc edx
lea esi, [ecx + ecx*2]
inc edx
inc edx
mov cl, byte [esi + 0x4beea8]
inc edx
cmp ax, 0x10
mov byte [edx - 4], cl
mov cl, byte [esi + 0x4beea9]
mov byte [edx - 3], cl
mov cl, byte [esi + 0x4beeaa]
mov byte [edx - 2], cl
mov byte [edx - 1], 0
jl 0x486fb7
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x48700c
mov eax, dword [esp + 0x18]
mov cx, word [eax + 0xe]
cmp cx, 8
jbe 0x487005
xor eax, eax
jmp 0x48700f
mov eax, 1
shl eax, cl
shl eax, 2
add eax, 0x28
mov edi, ebx
mov esi, dword [esp + 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x44], ecx
cmp dword [ebp + 0x34], ecx
jl 0x48745c
mov esi, dword [ebp + 0x28]
cmp dword [ebp + 0x30], esi
jl 0x48744a
mov eax, dword [esp + 0x44]
add eax, 0x64
mov dword [esp + 0x7c], eax
mov dword [esp + 0x5c], esi
add esi, 0x64
mov eax, dword [ebp + 0x30]
cmp eax, esi
jl 0x48705d
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x34]
cmp eax, ecx
jl 0x487076
mov eax, ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x68], eax
cmp dword [ebp + 0x24], 1
sbb eax, eax
mov ecx, dword [ebp + 0x20]
neg eax
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00425bd0
lea edx, [esp + 0x30]
mov ecx, dword [eax]
push edx
mov dword [edx], ecx
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
call dword [0x4c32d4]
test eax, eax
jne 0x487441
lea edi, [ebp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov ax, word [edi]
mov edx, dword [esp + 0x38]
cmp word [esp + 0x16], 0x18
push eax
push ecx
mov eax, dword [esp + 0x3c]
push edx
mov ecx, dword [esp + 0x3c]
push eax
mov edx, dword [esp + 0x28]
push ecx
push ebx
push edx
jne 0x4870f2
call fcn.004883d0
jmp 0x4870f7
call fcn.00487e10
add esp, 0x1c
cmp dword [ebp], 0
je 0x48715b
mov ax, word [edi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push eax
call fcn.00487e10
add esp, 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
push ecx
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x20]
push eax
xor eax, eax
mov al, byte [esp + 0x1b]
push eax
xor eax, eax
mov al, byte [esp + 0x20]
push eax
xor eax, eax
mov al, byte [esp + 0x25]
push eax
push ecx
push ebx
call fcn.00488650
add esp, 0x1c
cmp dword [ebp + 4], 0
je 0x4872cc
lea eax, [esp + 0x30]
lea ecx, [ebp + 0x48]
lea edx, [esp + 0x88]
push eax
push ecx
push edx
call dword [0x4c3284]
lea ecx, [esp + 0x88]
push ecx
call dword [0x4c32d4]
test eax, eax
jne 0x4872cc
lea eax, [esp + 0x88]
lea ecx, [esp + 0x6c]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x4c]
neg eax
mov ecx, dword [ebp + 0x48]
push eax
neg ecx
lea eax, [esp + 0x70]
push ecx
push eax
call dword [0x4c32c8]
mov ax, word [edi]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
push eax
cmp word [ecx + 0xe], 0x18
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
push ecx
push edx
mov ecx, dword [esp + 0x78]
push eax
mov edx, dword [esp + 0x60]
push ecx
mov eax, dword [esp + 0x54]
push edx
push eax
jne 0x4871fe
call fcn.004883d0
jmp 0x487203
call fcn.00487e10
mov ax, word [edi]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
add esp, 0x1c
push eax
push ecx
mov eax, dword [esp + 0x78]
push edx
mov ecx, dword [esp + 0x78]
push eax
mov edx, dword [esp + 0x2c]
push ecx
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.00487e10
mov ax, word [edi]
add esp, 0x1c
movsx ecx, ax
test ax, ax
jle 0x487266
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x30]
imul eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x34]
imul eax, ecx
jmp 0x48728e
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x88]
lea eax, [eax + ecx + 1]
cdq
idiv ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x8c]
lea eax, [eax + ecx + 1]
cdq
idiv ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov cx, word [eax + 0xe]
cmp word [edx + 0xe], cx
jne 0x4872cc
mov eax, dword [esp + 0x48]
push 0
mov ecx, dword [esp + 0x50]
mov edx, dword [0x4c0168]
push ecx
push eax
push edx
mov eax, dword [0x4bff58]
push eax
mov ecx, dword [0x4c0270]
push ecx
call fcn.0043e4c0
add esp, 0x18
lea eax, [esp + 0x5c]
lea ecx, [ebp + 0x38]
push eax
push ecx
push ecx
call dword [0x4c32f0]
cmp word [0x4bff5c], 8
jne 0x48733d
cmp word [esp + 0x16], 0x18
jne 0x48733d
mov ax, word [edi]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
push edx
push eax
mov edx, dword [esp + 0x44]
push ecx
mov eax, dword [esp + 0x80]
push edx
mov ecx, dword [esp + 0x80]
push eax
mov edx, dword [esp + 0x80]
push ecx
mov eax, dword [esp + 0x80]
push edx
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00487ad0
add esp, 0x30
jmp 0x487441
cmp word [0x4bff5c], 4
jne 0x4873a6
cmp word [esp + 0x16], 8
je 0x487357
cmp word [esp + 0x16], 0x18
jne 0x4873a6
mov ax, word [edi]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
push edx
push eax
mov edx, dword [esp + 0x44]
push ecx
mov eax, dword [esp + 0x80]
push edx
mov ecx, dword [esp + 0x80]
push eax
mov edx, dword [esp + 0x80]
push ecx
mov eax, dword [esp + 0x80]
push edx
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.004876a0
add esp, 0x30
jmp 0x487441
mov ecx, dword [ebp + 0x68]
lea edi, [esp + 0x5c]
lea edx, [esp + 0x98]
test ecx, ecx
mov dword [esp + 0x58], 0
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov edi, dword [edi + 0xc]
mov dword [edx + 0xc], edi
mov edi, dword [ebp + 0x1c]
je 0x4873f1
push 1
push ecx
mov ecx, edi
call fcn.004a7fd2
mov dword [esp + 0x58], eax
mov eax, dword [edi + 4]
push eax
call dword [0x4c2260]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push 0xcc0020
mov edx, dword [ebx + 0x20]
shl edx, 2
push 0
push ebx
add edx, dword [ebx]
add edx, ebx
push edx
push ecx
push eax
mov edx, dword [edi + 4]
push 0
push 0
push ecx
push eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
push eax
push ecx
push edx
call dword [0x4c22c0]
cmp dword [esp + 0x58], 0
je 0x487441
mov eax, dword [esp + 0x58]
push 0
push eax
mov ecx, edi
call fcn.004a7fd2
cmp dword [ebp + 0x30], esi
jge 0x48704d
add dword [esp + 0x44], 0x64
mov eax, dword [esp + 0x44]
cmp dword [ebp + 0x34], eax
jge 0x487036
mov eax, dword [0x4c0270]
mov esi, dword [0x4c2590]
push eax
call esi
mov ecx, dword [ebp + 0x58]
push ecx
call esi
cmp dword [0x4c0060], 0
je 0x487481
mov eax, dword [0x4c0060]
push eax
call esi
cmp dword [ebp], 0
je 0x487495
mov eax, dword [ebp + 0x5c]
push eax
call esi
mov eax, dword [0x4c0168]
push eax
call esi
cmp dword [ebp + 4], 0
je 0x4874af
mov eax, dword [ebp + 0x64]
push eax
call esi
mov eax, dword [ebp + 0x60]
push eax
call esi
mov eax, dword [0x4bff58]
push eax
call esi
cmp dword [ebp], 0
jne 0x4874bb
cmp dword [ebp + 4], 0
je 0x4874c3
mov eax, dword [0x4c0168]
push eax
call esi
cmp dword [ebp + 0xc], 0
jne 0x487582
cmp dword [ebp + 0x10], 0
je 0x487689
lea eax, [ebp + 0x38]
lea ecx, [ebp + 0x28]
push eax
push ecx
call dword [0x4c3294]
test eax, eax
jne 0x487689
lea eax, [esp + 0x98]
mov ecx, dword [ebp + 0x18]
push eax
call fcn.00425490
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x34]
push eax
mov dword [esp + 0x30], ecx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x2c], edx
call dword [0x4c32d4]
test eax, eax
jne 0x487538
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004a8692
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 0x44]
push eax
mov dword [esp + 0x28], ecx
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x30], edx
call dword [0x4c32d4]
test eax, eax
jne 0x487689
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.004a8692
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x98
ret
lea eax, [ebp + 0x38]
lea ecx, [ebp + 0x28]
push eax
push ecx
call dword [0x4c3294]
test eax, eax
jne 0x487689
lea eax, [esp + 0x48]
mov ecx, dword [ebp + 0x18]
push eax
call fcn.00425490
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [0x4c2274]
mov ecx, 7
mov eax, dword [esp + 0x4c]
cdq
xor eax, edx
mov esi, 7
sub eax, edx
and eax, ecx
xor eax, edx
sub eax, edx
sub ecx, eax
mov eax, dword [esp + 0x48]
cdq
xor eax, edx
sub eax, edx
and eax, esi
xor eax, edx
sub eax, edx
sub esi, eax
lea eax, [esp + 0x98]
push eax
push ecx
push esi
mov ecx, dword [ebp + 0x1c]
xor esi, esi
mov edx, dword [ecx + 4]
push edx
call dword [0x4c2278]
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x2c], ecx
call dword [0x4c32d4]
test eax, eax
jne 0x487640
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x48762c
mov esi, dword [eax + 4]
lea eax, [esp + 0x20]
push esi
push eax
mov ecx, dword [ecx + 4]
push ecx
mov esi, dword [0x4c3238]
call esi
jmp 0x487646
mov esi, dword [0x4c3238]
xor edi, edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 0x44]
push eax
mov dword [esp + 0x28], ecx
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x30], edx
call dword [0x4c32d4]
test eax, eax
jne 0x487689
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x48767d
mov edi, dword [eax + 4]
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, dword [ecx + 4]
push ecx
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x98
ret