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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66cd0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
push edi
lea ecx, [esp + 0x40]
call fcn.0064dc20
lea ecx, [esp + 0x28]
call fcn.0064dc20
cmp dword [0x705ea8], 1
je 0x481f0a
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004da3a0
mov ecx, esi
mov dword [esp + 0x5c], eax
call fcn.004d8830
test eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], 0
jle 0x481f0a
mov ebx, dword [ebp + 0xc]
jmp 0x481634
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.0048f180
mov edi, eax
mov dword [esp + 0xc], 0
mov ecx, edi
call fcn.0050ba10
cmp eax, 2
je 0x48169c
mov ecx, esi
call fcn.0048ee40
cmp eax, 2
jne 0x4816a4
mov ecx, esi
call fcn.0048fc00
test eax, eax
je 0x4816a4
mov ecx, eax
call fcn.004da380
test eax, eax
je 0x4816a4
push eax
mov ecx, esi
call fcn.00490320
test eax, eax
je 0x4816a4
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.0048f180
mov ecx, eax
call fcn.0050ba10
cmp eax, 2
jne 0x4816a4
mov dword [esp + 0xc], 1
lea edx, [esp + 0x60]
mov ecx, edi
push edx
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
sub esp, 0x18
mov dword [esp + 0x68], ecx
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
mov dword [esp + 0x6c], edx
mov edi, dword [esi]
push eax
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0xa0]
mov esi, dword [ebx + 8]
xor edi, edi
fstp qword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x14], edi
jle 0x481ef5
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x481778
cmp esi, 1
je 0x4817ed
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edx + edi*4]
call fcn.004d4310
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fld qword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x48188d
lea eax, [esi - 1]
cmp edi, eax
je 0x48199b
jmp 0x4817db
cmp esi, 1
je 0x481a41
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [edx + edi*4]
call fcn.004d4310
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fld qword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 0x41
je 0x481ae7
lea eax, [esi - 1]
cmp edi, eax
je 0x481d26
inc edi
cmp edi, esi
jl 0x48170f
mov dword [esp + 0x14], edi
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0xb0], edi
je 0x481818
mov ecx, eax
call fcn.004d40f0
mov edi, eax
sub esp, 0x18
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, edi
call fcn.004d43c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.004d4330
push 1
push 2
mov ecx, edi
call fcn.00529e00
push 1
push 3
mov ecx, edi
call fcn.00529e00
mov edx, dword [esp + 0xc]
mov ecx, edi
push edx
push 7
call fcn.00529e00
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, ebx
lea eax, [esi + 1]
push eax
call fcn.0048b670
mov ecx, dword [ebx + 4]
mov dword [ecx + esi*4], edi
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xb0], 1
je 0x4818bc
mov ecx, eax
call fcn.004d40f0
mov esi, eax
jmp 0x4818be
xor esi, esi
sub esp, 0x18
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, esi
call fcn.004d43c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004d4330
push 1
push 2
mov ecx, esi
call fcn.00529e00
push 1
push 3
mov ecx, esi
call fcn.00529e00
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
push 7
call fcn.00529e00
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
cmp edi, eax
mov dword [esp + 0x10], eax
jl 0x481932
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.0048b670
jmp 0x48197c
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
mov ecx, ebx
call fcn.0048b670
mov eax, dword [ebx + 4]
mov edx, edi
shl edx, 0x1e
sub edx, edi
lea ecx, [edi*4]
add edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
add ecx, eax
lea eax, [eax + edi*4 + 4]
shl edx, 2
push edx
push ecx
push eax
nop
call fcn.0081cf5c
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
add esp, 0xc
add eax, ecx
mov dword [eax], 0
xor ecx, ecx
lea eax, [edi*4]
mov edx, dword [ebx + 4]
add eax, 4
mov dword [eax + edx - 4], esi
mov edx, ecx
dec ecx
test edx, edx
jne 0x481985
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xb0], 2
je 0x4819ca
mov ecx, eax
call fcn.004d40f0
mov edi, eax
jmp 0x4819cc
xor edi, edi
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, edi
call fcn.004d43c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, edi
call fcn.004d4330
push 1
push 2
mov ecx, edi
call fcn.00529e00
push 1
push 3
mov ecx, edi
call fcn.00529e00
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
push 7
call fcn.00529e00
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.0048b670
mov edx, dword [ebx + 4]
mov dword [edx + esi*4], edi
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xb0], 3
je 0x481a70
mov ecx, eax
call fcn.004d40f0
mov edi, eax
jmp 0x481a72
xor edi, edi
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, edi
call fcn.004d43c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, edi
call fcn.004d4330
push 1
push 2
mov ecx, edi
call fcn.00529e00
push 1
push 3
mov ecx, edi
call fcn.00529e00
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
push 7
call fcn.00529e00
mov esi, dword [ebx + 8]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.0048b670
mov edx, dword [ebx + 4]
mov dword [edx + esi*4], edi
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xb0], 4
je 0x481b16
mov ecx, eax
call fcn.004d40f0
mov esi, eax
jmp 0x481b18
xor esi, esi
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, esi
call fcn.004d43c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004d4330
push 1
push 2
mov ecx, esi
call fcn.00529e00
push 1
push 3
mov ecx, esi
call fcn.00529e00
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 7
call fcn.00529e00
mov eax, dword [ebx + 8]
cmp edi, eax
mov dword [esp + 0xc], eax
jl 0x481cbd
lea ecx, [edi + 1]
test ecx, ecx
jne 0x481bb0
mov eax, dword [ebx + 4]
test eax, eax
je 0x481ba3
push eax
call fcn.0065e732
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x481d0b
mov edx, dword [ebx + 4]
test edx, edx
jne 0x481be5
lea eax, [edi + 1]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
add esp, 4
lea ecx, [edi + 1]
mov dword [ebx + 4], eax
push ecx
push eax
call fcn.00418860
lea eax, [edi + 1]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x481d0b
cmp ecx, dword [ebx + 0xc]
jg 0x481c10
cmp ecx, dword [esp + 0xc]
jle 0x481c05
lea eax, [edi + 1]
mov ecx, eax
mov eax, dword [esp + 0xc]
sub ecx, eax
lea edx, [edx + eax*4]
push ecx
push edx
call fcn.00418860
lea eax, [edi + 1]
mov dword [ebx + 8], eax
jmp 0x481d0b
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x481c3c
mov eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x481c30
mov eax, 4
jmp 0x481c3c
cmp eax, 0x400
jle 0x481c3c
mov eax, 0x400
mov edx, dword [ebx + 0xc]
add eax, edx
cmp ecx, eax
mov dword [esp + 0xc], eax
jl 0x481c4d
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x10], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00418860
mov ecx, dword [ebx + 4]
push ecx
call fcn.0065e732
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
jmp 0x481d0b
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
inc ecx
push ecx
mov ecx, ebx
call fcn.0048b670
mov edx, edi
mov eax, dword [ebx + 4]
shl edx, 0x1e
sub edx, edi
lea ecx, [edi*4]
add edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
add ecx, eax
shl edx, 2
push edx
lea edx, [eax + edi*4 + 4]
push ecx
push edx
nop
call fcn.0081cf65
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
add esp, 0xc
add eax, edx
push 1
push eax
call fcn.00418860
xor eax, eax
shl edi, 2
mov ecx, dword [ebx + 4]
add edi, 4
mov edx, eax
dec eax
mov dword [edi + ecx - 4], esi
test edx, edx
jne 0x481d10
jmp 0x481ef5
push 0xa0
mov dword [esp + 0x18], edi
call fcn.0065e5d0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xb0], 5
je 0x481d55
mov ecx, eax
call fcn.004d40f0
mov esi, eax
jmp 0x481d57
xor esi, esi
sub esp, 0x18
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0xcc], 0xffffffff
call fcn.0064dc70
mov ecx, esi
call fcn.004d43c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004d4330
push 1
push 2
mov ecx, esi
call fcn.00529e00
push 1
push 3
mov ecx, esi
call fcn.00529e00
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 7
call fcn.00529e00
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, edx
xor edi, edi
mov dword [esp + 0xc], ecx
inc ecx
cmp ecx, edi
jne 0x481de3
cmp eax, edi
je 0x481dd8
push eax
call fcn.0065e732
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x481eeb
cmp eax, edi
jne 0x481e27
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
lea edi, [eax*4]
push edi
call fcn.0065e5d0
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
inc eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x481eeb
mov edi, dword [ebx + 0xc]
cmp ecx, edi
jg 0x481e4f
cmp ecx, edx
jle 0x481e40
mov ecx, dword [esp + 0xc]
lea edi, [eax + edx*4]
inc ecx
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [ebx + 8], eax
jmp 0x481eeb
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x481e79
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x481e6d
mov eax, 4
jmp 0x481e79
cmp eax, 0x400
jle 0x481e79
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x14], eax
jl 0x481e87
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x14], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 4]
push edx
call fcn.0065e732
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0xc]
mov dword [edx + eax*4], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x481631
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret