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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x4dd840]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
xor eax, eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
cdq
xor eax, edx
mov dword [esp + 0x48], esi
sub eax, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x74]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb4]
push edi
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], eax
call fcn.00473cb0
test eax, eax
jne 0x47489c
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
call fcn.00473c30
test eax, eax
jns 0x47497f
mov eax, dword [esp + 0x50]
test eax, eax
je 0x47494f
xor edx, edx
mov ecx, eax
call fcn.00473380
mov esi, eax
test esi, esi
jne 0x474abb
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x474968
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x474abb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x84]
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x474a87
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x90]
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x474a87
mov eax, dword [esp + 0x14]
mov dword [esp + 0x90], 1
mov dword [esp + 0x84], 1
mov edx, dword [eax + 4]
add edx, 2
cmp edx, 0x2710
jbe 0x4749e5
mov esi, 0xfffffff0
jmp 0x474a87
lea ecx, [esp + 0x28]
call fcn.00472ec0
mov esi, eax
test esi, esi
jne 0x474a83
xor edx, edx
lea ecx, [esp + 0x28]
call fcn.00473380
mov esi, eax
test esi, esi
jne 0x474a83
lea edx, [eax + 2]
lea ecx, [esp + 0x9c]
call fcn.00472ec0
mov esi, eax
test esi, esi
jne 0x474a83
lea edx, [eax + 3]
lea ecx, [esp + 0x1c]
call fcn.00472ec0
mov esi, eax
test esi, esi
jne 0x474a7f
lea ecx, [esp + 0x90]
call fcn.00473590
and eax, 0x1f
cmp eax, 0x1f
jae 0x474bfc
mov ebx, 0x1f
lea ecx, [esp + 0x84]
sub ebx, eax
mov edx, ebx
mov dword [esp + 0x40], ebx
call fcn.004739c0
mov esi, eax
test esi, esi
jne 0x474a7f
mov edx, ebx
lea ecx, [esp + 0x90]
call fcn.004739c0
mov esi, eax
test esi, esi
je 0x474c00
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x474abb
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x474aac
lea ecx, [ecx]
mov dword [eax], 0
lea eax, [eax + 4]
dec ecx
jne 0x474aa0
push dword [esp + 0x8c]
call fcn.00493e96
add esp, 4
mov eax, dword [esp + 0x98]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
test eax, eax
je 0x474b0d
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x474afe
mov dword [eax], 0
lea eax, [eax + 4]
dec ecx
jne 0x474af2
push dword [esp + 0x98]
call fcn.00493e96
add esp, 4
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
test ebx, ebx
je 0x474b55
mov eax, dword [esp + 0x2c]
mov ecx, ebx
test eax, eax
je 0x474b4c
lea esp, [esp]
mov dword [ecx], 0
lea ecx, [ecx + 4]
dec eax
jne 0x474b40
push ebx
call fcn.00493e96
add esp, 4
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test eax, eax
je 0x474b9e
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x474b8f
mov dword [eax], 0
lea eax, [eax + 4]
dec ecx
jne 0x474b83
push dword [esp + 0xa4]
call fcn.00493e96
add esp, 4
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
test edi, edi
je 0x474be5
mov eax, dword [esp + 0x20]
mov ecx, edi
test eax, eax
je 0x474bdc
lea ecx, [ecx]
mov dword [ecx], 0
lea ecx, [ecx + 4]
dec eax
jne 0x474bd0
push edi
call fcn.00493e96
add esp, 4
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00493329
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x94]
dec ecx
dec eax
mov dword [esp + 0x34], ecx
mov edi, ecx
mov dword [esp + 0x3c], eax
sub edi, eax
lea ecx, [esp + 0x90]
mov ebx, edi
shl ebx, 5
mov edx, ebx
call fcn.004739c0
mov esi, eax
test esi, esi
jne 0x474a7f
lea edx, [esp + 0x90]
lea ecx, [esp + 0x84]
call fcn.00473cb0
test eax, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
js 0x474ca1
jmp 0x474c60
inc dword [eax + edi*4]
lea edx, [esp + 0x84]
lea eax, [esp + 0x90]
mov ecx, edx
push eax
call fcn.004740e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x475009
lea edx, [esp + 0x90]
lea ecx, [esp + 0x84]
call fcn.00473cb0
test eax, eax
mov eax, dword [esp + 0x10]
jns 0x474c60
mov edx, ebx
lea ecx, [esp + 0x90]
call fcn.00473b50
mov esi, eax
test esi, esi
jne 0x475009
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x474f56
lea edx, [ecx*4]
lea ecx, [ebx - 0x20]
mov dword [esp + 0xb4], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
sub ecx, 4
lea ebx, [ecx + edi*4]
mov edi, dword [esp + 0x24]
lea esp, [esp]
lea ecx, [eax*4]
mov eax, dword [esp + 0x98]
add ecx, dword [esp + 0x8c]
add eax, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], eax
mov esi, dword [ecx]
mov edx, dword [eax]
cmp esi, edx
jb 0x474d1f
mov dword [ebx], 0xffffffff
jmp 0x474d4e
test edx, edx
je 0x474d49
cmp esi, edx
jae 0x474d49
mov ecx, dword [ecx - 4]
xor eax, eax
push 0
push edx
or eax, esi
push eax
push ecx
call fcn.004974a0
test edx, edx
jne 0x474d41
cmp eax, 0xffffffff
jbe 0x474d4c
mov dword [esp + 0x5c], 0
or eax, 0xffffffff
mov dword [ebx], eax
inc dword [ebx]
dec dword [ebx]
lea ecx, [esp + 0x9c]
xor edx, edx
call fcn.00473380
mov esi, eax
test esi, esi
jne 0x475000
cmp dword [esp + 0x3c], 1
jb 0x474d78
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 4]
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x9c]
mov dword [esp + 0xa8], 1
mov dword [esp + 0xac], 1
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [ecx + 4], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0xb0], eax
mov ecx, edx
mov eax, dword [ebx]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xa8]
push eax
call fcn.00474550
mov esi, eax
add esp, 4
test esi, esi
jne 0x475000
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00473380
mov esi, eax
test esi, esi
jne 0x475009
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x474e03
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + ecx*4 - 8]
mov edi, dword [esp + 0x24]
mov dword [edi], eax
cmp ecx, 1
jae 0x474e12
xor eax, eax
jmp 0x474e19
mov eax, dword [esp + 0x54]
mov eax, dword [eax - 4]
mov dword [edi + 4], eax
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x9c]
mov eax, dword [eax]
mov dword [edi + 8], eax
call fcn.00473cb0
test eax, eax
jg 0x474d50
push dword [ebx]
lea edx, [esp + 0x94]
lea ecx, [esp + 0xa0]
call fcn.004747c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x475000
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x9c]
call fcn.004739c0
mov esi, eax
test esi, esi
jne 0x475000
lea eax, [esp + 0x9c]
lea edx, [esp + 0x84]
push eax
mov ecx, edx
call fcn.004740e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x475000
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x6c]
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x84]
lea eax, [esp + 0xc0]
mov dword [esp + 0x6c], 1
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], eax
call fcn.00473cb0
test eax, eax
jns 0x474f32
lea edx, [esp + 0x90]
lea ecx, [esp + 0x9c]
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x475000
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x9c]
call fcn.004739c0
mov esi, eax
test esi, esi
jne 0x475000
lea eax, [esp + 0x9c]
lea edx, [esp + 0x84]
push eax
mov ecx, edx
call fcn.00474070
mov esi, eax
add esp, 4
test esi, esi
jne 0x475000
dec dword [ebx]
mov eax, dword [esp + 0x34]
sub ebx, 4
sub dword [esp + 0x18], 0x20
dec eax
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x3c]
ja 0x474cf0
jmp 0x474f5a
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x474f86
lea edx, [esp + 0x28]
mov ecx, ebx
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x475000
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
imul eax, dword [ecx]
mov dword [ebx], eax
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x475000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x84]
call fcn.00473b50
mov esi, eax
test esi, esi
jne 0x475000
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x84]
mov ecx, ebx
mov eax, dword [eax]
mov dword [esp + 0x84], eax
call fcn.00472fe0
mov esi, eax
test esi, esi
jne 0x475000
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x58]
mov dword [esp + 0xb4], eax
mov ecx, ebx
lea eax, [esp + 0xb4]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], eax
call fcn.00473cb0
test eax, eax
jne 0x475000
mov dword [ebx], 1
mov ebx, dword [esp + 0x10]
jmp 0x474a87
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
jmp 0x474a87