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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x921c
push eax
push edi
xor ebx, ebx
xor esi, esi
call fcn.0044b420
add esp, 0xc
cmp dword [edi], 4
jbe 0x407796
mov dword [edi], ebx
xor ebp, ebp
lea edi, [ebp + 1]
jmp 0x4077a0
mov ecx, dword [esp + 0x14]
mov eax, ebp
imul eax, eax, 0x1d38
add eax, ecx
cmp dword [eax + 4], 0xffffffff
mov edx, 0xa
jne 0x4077c5
mov dword [eax + 4], ebx
cmp ebp, ebx
jne 0x4077c3
mov dword [ecx + 4], edi
mov esi, edi
cmp dword [eax + 8], 8
jbe 0x4077d4
mov dword [eax + 8], 2
mov esi, edi
cmp dword [eax + 0x24], edx
jbe 0x4077de
mov dword [eax + 0x24], edx
mov esi, edi
cmp dword [eax + 0x28], edx
jbe 0x4077e8
mov dword [eax + 0x28], edx
mov esi, edi
cmp dword [eax + 0x2c], edx
jbe 0x4077f2
mov dword [eax + 0x2c], edx
mov esi, edi
mov ecx, dword [eax + 0x18]
cmp ecx, edi
jb 0x4077fe
cmp ecx, 0x14
jbe 0x407803
mov dword [eax + 0x18], edx
mov esi, edi
cmp dword [eax + 0xc], edx
jbe 0x407811
mov dword [eax + 0xc], 5
mov esi, edi
mov ecx, dword [eax + 0x10]
cmp ecx, edi
jb 0x40781d
cmp ecx, 0x3f
jbe 0x407822
mov dword [eax + 0x10], edi
mov esi, edi
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
je 0x407832
cmp ecx, edi
je 0x407832
mov dword [eax + 0x14], ebx
mov esi, edi
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
jb 0x40783e
cmp ecx, 4
jbe 0x407843
mov dword [eax + 0x1c], edi
mov esi, edi
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x407853
cmp ecx, edi
je 0x407853
mov dword [eax + 0x20], ebx
mov esi, edi
mov ecx, dword [eax + 0x34]
cmp ecx, edi
jb 0x40785f
cmp ecx, 0x2c
jbe 0x407868
mov dword [eax + 0x34], 2
mov esi, edi
mov ecx, dword [eax + 0x38]
cmp ecx, edi
jb 0x407873
cmp ecx, edx
jbe 0x40787c
mov dword [eax + 0x38], 8
mov esi, edi
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
jb 0x407887
cmp ecx, edx
jbe 0x407893
mov edx, 5
mov dword [eax + 0x3c], edx
mov esi, edi
jmp 0x407898
mov edx, 5
or ecx, 0xffffffff
cmp dword [eax + 0x40], ecx
jne 0x4078ac
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x40], esi
mov esi, edi
cmp dword [eax + 0x44], ecx
jne 0x4078bd
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x44], esi
mov esi, edi
cmp dword [eax + 0x48], ecx
jne 0x4078ce
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x48], esi
mov esi, edi
cmp dword [eax + 0x4c], ecx
jne 0x4078df
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x4c], esi
mov esi, edi
cmp dword [eax + 0x50], ecx
jne 0x4078f0
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x50], esi
mov esi, edi
cmp dword [eax + 0x54], ecx
jne 0x407901
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x54], esi
mov esi, edi
cmp dword [eax + 0x58], ecx
jne 0x407912
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x58], esi
mov esi, edi
cmp dword [eax + 0x5c], ecx
jne 0x407923
mov esi, dword [ebp*4 + 0x47f4d0]
mov dword [eax + 0x5c], esi
mov esi, edi
cmp dword [eax + 0x60], ecx
jne 0x40792d
mov dword [eax + 0x60], ebx
mov esi, edi
cmp dword [eax + 0x64], ecx
jne 0x407937
mov dword [eax + 0x64], ebx
mov esi, edi
cmp dword [eax + 0x68], ecx
jne 0x407941
mov dword [eax + 0x68], ebx
mov esi, edi
cmp dword [eax + 0x6c], ecx
jne 0x40794b
mov dword [eax + 0x6c], ebx
mov esi, edi
cmp dword [eax + 0x70], ecx
jne 0x407955
mov dword [eax + 0x70], ebx
mov esi, edi
cmp dword [eax + 0x74], ecx
jne 0x40795f
mov dword [eax + 0x74], ebx
mov esi, edi
cmp dword [eax + 0x78], ecx
jne 0x407969
mov dword [eax + 0x78], ebx
mov esi, edi
cmp dword [eax + 0x7c], ecx
jne 0x407973
mov dword [eax + 0x7c], ebx
mov esi, edi
cmp dword [eax + 0xc8], edx
jbe 0x407983
mov dword [eax + 0xc8], ebp
mov esi, edi
cmp dword [eax + 0xc0], edi
jbe 0x407993
mov dword [eax + 0xc0], ebx
mov esi, edi
mov ecx, dword [eax + 0xc4]
cmp ecx, edi
jb 0x4079a1
cmp ecx, edx
jbe 0x4079ad
mov dword [eax + 0xc4], 3
mov esi, edi
mov ecx, dword [eax + 0xcc]
cmp ecx, edi
jb 0x4079bc
cmp ecx, 0x4b
jbe 0x4079c8
mov dword [eax + 0xcc], 0xe
mov esi, edi
mov ecx, dword [eax + 0xd0]
cmp ecx, edi
jb 0x4079d7
cmp ecx, 0x4b
jbe 0x4079e3
mov dword [eax + 0xd0], 0xe
mov esi, edi
cmp dword [eax + 0xd4], edx
je 0x4079f3
mov dword [eax + 0xd4], edx
mov esi, edi
mov edx, 0x47f828
lea ecx, [eax + 0xdc]
mov edi, edi
cmp dword [ecx], ebx
jne 0x407a12
mov dword [ecx - 4], edi
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [edx]
mov dword [ecx + 4], ebx
xor ebx, ebx
add edx, 4
add ecx, 0xc
cmp edx, 0x47f840
jl 0x407a00
mov ecx, 0x47ea78
add eax, 0x159
lea ebx, [ebx]
cmp byte [eax], 0xff
jne 0x407a39
mov dl, byte [ecx]
mov byte [eax], dl
add ecx, 4
add eax, 0x2ca
cmp ecx, 0x47eaa0
jl 0x407a30
add ebp, edi
cmp ebp, 5
jl 0x4077a0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret