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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
push edi
lea ecx, [esp + 0x40]
call fcn.0064dc20
lea ecx, [esp + 0x58]
call fcn.0064dc20
lea ecx, [esp + 0x28]
call fcn.0064dc20
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.0049e390
mov ebx, eax
xor esi, esi
mov eax, dword [ebx + 8]
cmp eax, edi
mov dword [esp + 0x20], eax
jle 0x4796f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
call fcn.0048ee40
cmp eax, 2
je 0x4796e8
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x74]
mov ecx, dword [ecx + esi*4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x60]
lea ecx, [esp + 0x70]
call fcn.00456760
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x4796b7
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x479e1c
mov ecx, dword [ebx + 4]
mov esi, dword [ebp + 0xc]
push 0
push 5
mov ecx, dword [ecx + edi*4]
call fcn.0048ed30
mov edx, dword [ebx + 4]
mov ecx, dword [edx + edi*4]
call fcn.004da3c0
cmp eax, 2
jge 0x47978d
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc edx
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], edx
jle 0x479755
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 4]
cmp edx, dword [ecx]
je 0x47974d
inc eax
add ecx, 4
cmp eax, dword [esi + 8]
jl 0x47973e
jmp 0x479755
test eax, eax
jge 0x479e07
mov edx, dword [ebx + 4]
push 1
push 5
mov ecx, dword [edx + edi*4]
call fcn.0048ed30
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
mov ecx, dword [eax + edi*4]
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, esi
lea edx, [edi + 1]
push edx
call fcn.0048b670
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
jmp 0x479e07
mov edx, dword [ebx + 4]
mov ecx, dword [edx + edi*4]
call fcn.0048ee40
cmp eax, 2
je 0x479e07
mov eax, dword [ebx + 4]
push 4
mov ecx, dword [eax + edi*4]
call fcn.004d8810
test eax, eax
jne 0x479e07
mov ecx, dword [ebx + 4]
push 3
mov ecx, dword [ecx + edi*4]
call fcn.004d8810
test eax, eax
jne 0x479e07
mov edx, dword [ebx + 4]
push 1
mov ecx, dword [edx + edi*4]
call fcn.0048ee10
test eax, eax
jne 0x479e07
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
call fcn.004da3a0
mov esi, eax
cmp dword [esi + 0x10], 3
je 0x479e07
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
fcomp qword [0x692690]
fnstsw ax
test ah, 1
je 0x47987b
mov esi, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
inc edx
xor eax, eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x10], edx
test ecx, ecx
jle 0x479843
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 4]
cmp edx, dword [ecx]
je 0x47983b
inc eax
add ecx, 4
cmp eax, dword [esi + 8]
jl 0x47982c
jmp 0x479843
test eax, eax
jge 0x479e07
mov edx, dword [ebx + 4]
push 1
push 5
mov ecx, dword [edx + edi*4]
call fcn.0048ed30
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
mov ecx, dword [eax + edi*4]
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, esi
lea edx, [edi + 1]
push edx
call fcn.0048b670
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov dword [eax + edi*4], ecx
jmp 0x479e07
mov edx, dword [esi]
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
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]
mov dword [esp + 0x50], ecx
push 0x3fe00000
lea ecx, [esp + 0xbc]
mov dword [esp + 0x58], edx
mov eax, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x90]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov edx, dword [esi]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
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]
xor esi, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc], esi
jmp 0x479939
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x479bc2
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
call fcn.0048ee40
cmp eax, 2
je 0x479bc2
mov ecx, dword [ebx + 4]
push 4
mov ecx, dword [ecx + esi*4]
call fcn.004d8810
test eax, eax
jne 0x479bc2
mov edx, dword [ebx + 4]
push 3
mov ecx, dword [edx + esi*4]
call fcn.004d8810
test eax, eax
jne 0x479bc2
mov eax, dword [ebx + 4]
push 1
mov ecx, dword [eax + esi*4]
call fcn.0048ee10
test eax, eax
jne 0x479bc2
mov ecx, dword [ebx + 4]
push 6
mov ecx, dword [ecx + edi*4]
call fcn.004d8810
cmp eax, 1
jne 0x4799bb
mov edx, dword [ebx + 4]
push 6
mov ecx, dword [edx + esi*4]
call fcn.004d8810
test eax, eax
je 0x479bc2
mov eax, dword [ebx + 4]
push 6
mov ecx, dword [eax + edi*4]
call fcn.004d8810
test eax, eax
jne 0x4799e2
mov ecx, dword [ebx + 4]
push 6
mov ecx, dword [ecx + esi*4]
call fcn.004d8810
cmp eax, 1
je 0x479bc2
mov edx, dword [ebx + 4]
push 5
mov ecx, dword [edx + esi*4]
call fcn.004d8810
test eax, eax
jne 0x479bc2
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
sub esp, 0x30
mov esi, dword [eax + ecx*4]
mov ecx, 0xc
add esi, 0x38
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + edx*4]
add ecx, 0x38
call fcn.0064f5a0
test eax, eax
je 0x479bc2
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0064dc70
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x479bc2
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov eax, dword [esp + 0x2c]
mov ecx, ebx
push eax
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x479bc2
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov eax, dword [esp + 0x2c]
mov ecx, ebx
push eax
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x479bc2
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
call fcn.004da3a0
push 0x3f847ae1
push 0x47ae147b
mov esi, eax
sub esp, 0x18
lea eax, [esp + 0x60]
mov ecx, esp
mov edi, dword [esi]
mov dword [esp + 0x3c], esp
push eax
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0x104]
mov edi, dword [esi]
push 0x3f847ae1
push 0x47ae147b
lea edx, [esp + 0x60]
sub esp, 0x18
mov dword [esp + 0x44], eax
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0x104]
mov edi, dword [esi]
push 0x3f847ae1
push 0x47ae147b
mov dword [esp + 0x20], eax
sub esp, 0x18
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0x104]
mov ecx, dword [esp + 0x24]
cmp ecx, 5
je 0x479b74
cmp ecx, 6
jne 0x479b88
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x479b8c
cmp eax, 5
je 0x479bdc
cmp eax, 6
je 0x479bdc
jmp 0x479b8c
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x479b9a
cmp ecx, 5
je 0x479b9a
cmp ecx, 6
jne 0x479bc2
test edx, edx
je 0x479ba8
cmp edx, 5
je 0x479ba8
cmp edx, 6
jne 0x479bc2
test eax, eax
je 0x479c6e
cmp eax, 5
je 0x479c6e
cmp eax, 6
je 0x479c6e
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0xc], esi
jl 0x479935
jmp 0x479e07
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
push 5
mov ecx, dword [ecx + edx*4]
call fcn.004d8810
test eax, eax
jne 0x479e07
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
call fcn.0048ed70
test eax, eax
jne 0x479c65
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 8]
test edx, edx
jle 0x479c32
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + esi*4]
mov ecx, dword [edi + 4]
cmp esi, dword [ecx]
je 0x479c2a
inc eax
add ecx, 4
cmp eax, edx
jl 0x479c1c
jmp 0x479c2e
test eax, eax
jge 0x479c65
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push 1
push 5
mov ecx, dword [edx + esi*4]
call fcn.0048ed30
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
mov ecx, dword [eax + esi*4]
mov esi, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.0048b670
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + esi*4], ecx
inc dword [esp + 0x10]
jmp 0x479e07
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
inc esi
push 0
mov dword [esp + 0x14], esi
mov ecx, dword [edx + eax*4]
call fcn.0048ed70
test eax, eax
jne 0x479e07
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 8]
test edx, edx
jle 0x479cc0
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x14]
mov edi, dword [ecx + edi*4]
mov ecx, dword [esi + 4]
cmp edi, dword [ecx]
je 0x479cb5
inc eax
add ecx, 4
cmp eax, edx
jl 0x479ca7
jmp 0x479cc0
test eax, eax
jge 0x479e07
mov esi, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x14]
push 1
push 5
mov ecx, dword [edx + edi*4]
call fcn.0048ed30
mov eax, dword [ebx + 4]
mov edx, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov eax, dword [esi + 4]
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
inc edi
test edi, edi
jne 0x479d0b
xor edi, edi
cmp eax, edi
je 0x479d00
push eax
call fcn.0065e732
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x479df9
test eax, eax
jne 0x479d34
lea edx, [edi*4]
push edx
call fcn.0065e5d0
add esp, 4
mov dword [esi + 4], eax
push edi
push eax
call fcn.00418860
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x479df9
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jg 0x479d55
cmp edi, edx
jle 0x479d4d
mov ecx, edi
sub ecx, edx
lea edx, [eax + edx*4]
push ecx
push edx
call fcn.00418860
mov dword [esi + 8], edi
jmp 0x479df9
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x479d7f
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x479d73
mov eax, 4
jmp 0x479d7f
cmp eax, 0x400
jle 0x479d7f
mov eax, 0x400
add eax, ecx
cmp edi, eax
mov dword [esp + 0xc], eax
jl 0x479d8d
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
mov edx, dword [ebp + 0xc]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 8]
mov esi, dword [edx + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
lea edi, [edx + 1]
mov edx, edi
mov ecx, dword [esi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00418860
mov ecx, dword [esi + 4]
push ecx
call fcn.0065e732
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4], edx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x479701
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x479e58
xor eax, eax
cmp eax, esi
je 0x479e4a
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ecx + esi*4]
mov edi, dword [edx + 4]
cmp dword [ecx + 4], edi
jne 0x479e4a
mov ecx, dword [esp + 0x10]
dec edi
inc ecx
mov dword [edx + 4], edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
jl 0x479e28
inc esi
cmp esi, ecx
jl 0x479e26
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret