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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0064dc20
lea ecx, [esp + 0x5c]
call fcn.0064dc20
lea ecx, [esp + 0x44]
call fcn.0064dc20
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x298]
call fcn.004be450
test eax, eax
je 0x479649
mov ecx, eax
call fcn.0049e390
mov ebx, eax
xor esi, esi
mov edi, dword [ebx + 8]
test edi, edi
mov dword [esp + 0x20], edi
jle 0x4790ad
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
call fcn.0048ee40
cmp eax, 2
je 0x4790a8
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
lea edx, [esp + 0xf0]
push edx
lea edx, [esp + 0xac]
mov eax, dword [ecx]
push edx
call dword [eax + 0x60]
lea ecx, [esp + 0xa8]
call fcn.00456760
inc esi
cmp esi, edi
jl 0x479071
xor esi, esi
test edi, edi
mov dword [esp + 0x14], esi
jle 0x4795fc
mov eax, dword [ebx + 4]
push 0
push 5
mov ecx, dword [eax + esi*4]
call fcn.0048ed30
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
call fcn.004da3c0
cmp eax, 2
jge 0x4790fb
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
inc edi
push 1
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x14], edi
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
jmp 0x479198
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
call fcn.0048ee40
cmp eax, 2
je 0x4795eb
mov edx, dword [ebx + 4]
push 4
mov ecx, dword [edx + esi*4]
call fcn.004d8810
test eax, eax
jne 0x4795eb
mov eax, dword [ebx + 4]
push 3
mov ecx, dword [eax + esi*4]
call fcn.004d8810
test eax, eax
jne 0x4795eb
mov ecx, dword [ebx + 4]
push 1
mov ecx, dword [ecx + esi*4]
call fcn.0048ee10
test eax, eax
jne 0x4795eb
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
call fcn.004da3a0
mov edi, eax
cmp dword [edi + 0x10], 3
je 0x4795eb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xb8]
fcomp qword [0x692690]
fnstsw ax
test ah, 1
je 0x4791b3
mov ecx, dword [esp + 0x10]
push 1
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
push 2
call dword [edx + 0x54]
mov eax, dword [ebx + 4]
push 1
push 5
mov ecx, dword [eax + esi*4]
call fcn.0048ed30
jmp 0x4795eb
mov edx, dword [edi]
lea eax, [esp + 0x90]
push eax
mov ecx, edi
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x3c], ecx
push 0x3fe00000
lea ecx, [esp + 0xdc]
mov dword [esp + 0x44], edx
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x90]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edx
mov edx, dword [edi]
lea eax, [esp + 0x78]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edi, edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x4794fb
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
call fcn.0048ee40
cmp eax, 2
je 0x4794fb
mov ecx, dword [ebx + 4]
push 4
mov ecx, dword [ecx + edi*4]
call fcn.004d8810
test eax, eax
jne 0x4794fb
mov edx, dword [ebx + 4]
push 3
mov ecx, dword [edx + edi*4]
call fcn.004d8810
test eax, eax
jne 0x4794fb
mov eax, dword [ebx + 4]
push 1
mov ecx, dword [eax + edi*4]
call fcn.0048ee10
test eax, eax
jne 0x4794fb
mov ecx, dword [ebx + 4]
push 6
mov ecx, dword [ecx + esi*4]
call fcn.004d8810
cmp eax, 1
jne 0x4792ed
mov edx, dword [ebx + 4]
push 6
mov ecx, dword [edx + edi*4]
call fcn.004d8810
test eax, eax
je 0x4794fb
mov eax, dword [ebx + 4]
push 6
mov ecx, dword [eax + esi*4]
call fcn.004d8810
test eax, eax
jne 0x479314
mov ecx, dword [ebx + 4]
push 6
mov ecx, dword [ecx + edi*4]
call fcn.004d8810
cmp eax, 1
je 0x4794fb
mov edx, dword [ebx + 4]
push 5
mov ecx, dword [edx + edi*4]
call fcn.004d8810
test eax, eax
jne 0x4794fb
mov eax, dword [ebx + 4]
sub esp, 0x30
mov ecx, 0xc
mov esi, dword [eax + edi*4]
mov edi, esp
add esi, 0x38
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x44]
mov ecx, dword [eax + ecx*4]
add ecx, 0x38
call fcn.0064f5a0
test eax, eax
je 0x4794f3
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov eax, dword [esp + 0x38]
mov ecx, ebx
push eax
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x4794f3
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov eax, dword [esp + 0x38]
mov ecx, ebx
push eax
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x4794f3
push 0x3f847ae1
push 0x47ae147b
sub esp, 0x18
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0064dc70
mov eax, dword [esp + 0x38]
mov ecx, ebx
push eax
call fcn.004ea1e0
mov ecx, dword [eax]
add ecx, 0x38
call fcn.0064f540
test eax, eax
je 0x4794f3
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + edx*4]
call fcn.004da3a0
push 0x3f847ae1
push 0x47ae147b
mov esi, eax
sub esp, 0x18
lea eax, [esp + 0x4c]
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 + 0x64]
sub esp, 0x18
mov dword [esp + 0x3c], eax
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0x104]
mov edi, dword [esi]
push 0x3f847ae1
push 0x47ae147b
mov dword [esp + 0x2c], eax
sub esp, 0x18
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0x104]
mov ecx, dword [esp + 0x1c]
cmp ecx, 5
je 0x4794a5
cmp ecx, 6
jne 0x4794b9
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x4794bd
cmp eax, 5
je 0x479511
cmp eax, 6
je 0x479511
jmp 0x4794bd
mov edx, dword [esp + 0x24]
test ecx, ecx
je 0x4794cb
cmp ecx, 5
je 0x4794cb
cmp ecx, 6
jne 0x4794f3
test edx, edx
je 0x4794d9
cmp edx, 5
je 0x4794d9
cmp edx, 6
jne 0x4794f3
test eax, eax
je 0x47957e
cmp eax, 5
je 0x47957e
cmp eax, 6
je 0x47957e
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x18], edi
jl 0x47926b
jmp 0x4795eb
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
push 1
mov ecx, dword [ecx + edx*4]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x18]
push 1
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov eax, dword [ebx + 4]
push 5
mov ecx, dword [eax + esi*4]
call fcn.004d8810
test eax, eax
jne 0x4795e7
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x14]
push eax
mov ecx, dword [ecx + esi*4]
call fcn.0048ed70
test eax, eax
jne 0x479578
mov edx, dword [ebx + 4]
push 1
push 5
mov ecx, dword [edx + esi*4]
call fcn.0048ed30
mov eax, dword [ebx + 4]
push 2
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x54]
inc dword [esp + 0x10]
jmp 0x4795e7
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x18]
push 0
mov ecx, dword [eax + edi*4]
call fcn.0048ed70
test eax, eax
jne 0x4795e7
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc ecx
push 1
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov eax, dword [ebx + 4]
push 0
mov ecx, dword [eax + esi*4]
call fcn.0048ed70
test eax, eax
jne 0x4795da
mov ecx, dword [ebx + 4]
push 1
push 5
mov ecx, dword [ecx + esi*4]
call fcn.0048ed30
mov edx, dword [ebx + 4]
push 2
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [ebx + 4]
push 1
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4790bb
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x479645
xor esi, esi
cmp esi, edi
je 0x479637
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
mov edx, dword [edx + edi*4]
mov ecx, dword [eax + 4]
cmp dword [edx + 4], ecx
jne 0x479637
dec ecx
push 1
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x479608
inc edi
cmp edi, eax
jl 0x479606
mov esi, dword [esp + 0x28]
inc esi
cmp esi, 0x32
mov dword [esp + 0x28], esi
jl 0x479044
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret