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

Disassembly:
sub esp, 0x3f4
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x404]
mov al, byte [ebp + 0x28]
push esi
xor edx, edx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
test al, al
je 0x47afcb
mov eax, dword [esp + 0x414]
lea esi, [ebp + 0x2c]
mov ecx, 0xa
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x408]
push eax
push ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x34]
call fcn.00477b20
jmp 0x47b015
mov al, byte [ebp + 0x10]
test al, al
je 0x47afe8
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x30], edx
mov edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], edx
jmp 0x47aff0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov eax, 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
cmp byte [ebp + 4], bl
je 0x47b025
mov al, byte [ebp + 8]
mov byte [esp + 0x17], al
test al, al
jne 0x47b034
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f4
ret 0x20
push 0x700
call fcn.004faf1d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47b063
mov ebx, esi
call fcn.00460c70
lea ecx, [esi + 0x5dc]
call fcn.004114e0
mov dword [esp + 0x18], esi
xor ebx, ebx
mov edx, esi
jmp 0x47b069
xor edx, edx
mov dword [esp + 0x18], edx
mov al, byte [esp + 0x17]
lea edi, [edx + 0x5a4]
mov ecx, 0xd
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x410]
mov esi, dword [ecx]
mov byte [edx + 0x5d8], al
mov eax, dword [ecx + 4]
or edi, 0xffffffff
cmp byte [eax + 4], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x47b0b7
cmp byte [eax + 8], 0
je 0x47b0b7
mov al, byte [esi + 4]
test al, al
je 0x47b0b7
mov esi, dword [esi + 8]
mov dword [esp + 0x1c], esi
jmp 0x47b0bb
mov dword [esp + 0x1c], edi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 4], 0
je 0x47b0dd
cmp byte [ecx + 8], 0
je 0x47b0dd
mov al, byte [esi + 4]
test al, al
je 0x47b0dd
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], ecx
jmp 0x47b0e1
mov dword [esp + 0x20], edi
xor eax, eax
cmp byte [ebp + 0x438], al
je 0x47b0f1
mov eax, dword [ebp + 0x43c]
add edx, 0x5dc
call fcn.00411710
lea eax, [esp + 0x60]
call fcn.00475610
lea eax, [esp + 0x300]
call fcn.00475610
lea eax, [esp + 0x3c0]
call fcn.00475610
lea eax, [esp + 0x280]
call fcn.00475610
lea eax, [esp + 0x380]
call fcn.00475610
lea eax, [esp + 0x2c0]
call fcn.00475610
lea eax, [esp + 0x340]
call fcn.00475610
cmp byte [ebp + 0x80], 0
je 0x47b167
lea esi, [ebp + 0x84]
mov ecx, 0x10
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b187
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x424]
lea ebx, [esp + 0x64]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x108], 0
je 0x47b1a4
lea esi, [ebp + 0x10c]
mov ecx, 0x10
lea edi, [esp + 0x300]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b1c7
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x424]
lea ebx, [esp + 0x304]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x190], 0
je 0x47b1e4
lea esi, [ebp + 0x194]
mov ecx, 0x10
lea edi, [esp + 0x3c0]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b207
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x424]
lea ebx, [esp + 0x3c4]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x218], 0
je 0x47b224
lea esi, [ebp + 0x21c]
mov ecx, 0x10
lea edi, [esp + 0x280]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b247
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x424]
lea ebx, [esp + 0x284]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x2a0], 0
je 0x47b264
lea esi, [ebp + 0x2a4]
mov ecx, 0x10
lea edi, [esp + 0x380]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b287
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x424]
lea ebx, [esp + 0x384]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x328], 0
je 0x47b2a4
lea esi, [ebp + 0x32c]
mov ecx, 0x10
lea edi, [esp + 0x2c0]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b2c7
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x424]
lea ebx, [esp + 0x2c4]
call fcn.0047b630
xor ebx, ebx
cmp byte [ebp + 0x3b0], 0
je 0x47b2e4
lea esi, [ebp + 0x3b4]
mov ecx, 0x10
lea edi, [esp + 0x340]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x420], ebx
je 0x47b305
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x424]
lea ebx, [esp + 0x344]
call fcn.0047b630
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
mov dword [eax + 0x5a0], ebx
mov ecx, dword [esp + 0x41c]
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x408]
lea eax, [esp + 0xa4]
call fcn.00460660
cmp dword [esp + 0x24], 0
jl 0x47b36c
mov eax, dword [esp + 0x24]
lea edx, [ebx + eax*2]
add edx, eax
mov ecx, dword [edx*4 + 0x583958]
cmp ecx, 0xffffffff
je 0x47b619
xor eax, eax
cmp ecx, 0x17
ja 0x47b363
call fcn.0047a1c0
mov dword [esp + 0xa0], eax
jmp 0x47b375
cmp ebx, 1
jae 0x47b619
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0xa8]
push ecx
push ebp
push esi
lea edx, [esp + 0x70]
push edx
push ebx
mov dl, 1
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0xec]
push ecx
push ebp
push esi
lea edx, [esp + 0x310]
push edx
push ebx
xor dl, dl
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
push esi
lea edx, [esp + 0x3d0]
push edx
push ebx
xor dl, dl
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0x174]
push ecx
push ebp
push esi
lea edx, [esp + 0x290]
push edx
push ebx
mov dl, 1
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0x1b8]
push ecx
push ebp
push esi
lea edx, [esp + 0x390]
push edx
push ebx
xor dl, dl
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0x1fc]
push ecx
push ebp
push esi
lea edx, [esp + 0x2d0]
push edx
push ebx
mov dl, 1
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x418]
push eax
lea ecx, [esp + 0x240]
push ecx
push ebp
push esi
lea edx, [esp + 0x350]
push edx
push ebx
xor dl, dl
mov ecx, edi
call fcn.00479fd0
mov eax, dword [esp + 0x1b4]
test eax, eax
je 0x47b47e
cmp eax, 1
jne 0x47b48d
cmp dword [esp + 0x1b8], 0
sete al
test al, al
je 0x47b4d5
mov eax, dword [esp + 0x170]
test eax, eax
je 0x47b49d
cmp eax, 1
jne 0x47b4d5
cmp dword [esp + 0x174], 0
sete al
test al, al
jne 0x47b4d5
mov ecx, 0x11
lea esi, [esp + 0x170]
lea edi, [esp + 0x1b4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x180]
test eax, eax
je 0x47b4d5
cmp dword [eax], 1
jne 0x47b4d5
mov byte [eax + 0x3d], 1
mov eax, dword [esp + 0x23c]
test eax, eax
je 0x47b4e5
cmp eax, 1
jne 0x47b4f4
cmp dword [esp + 0x240], 0
sete al
test al, al
je 0x47b53c
mov eax, dword [esp + 0x1f8]
test eax, eax
je 0x47b504
cmp eax, 1
jne 0x47b53c
cmp dword [esp + 0x1fc], 0
sete al
test al, al
jne 0x47b53c
mov ecx, 0x11
lea esi, [esp + 0x1f8]
lea edi, [esp + 0x23c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x208]
test eax, eax
je 0x47b53c
cmp dword [eax], 1
jne 0x47b53c
mov byte [eax + 0x3d], 1
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
test edx, edx
je 0x47b553
cmp edx, 1
jne 0x47b55c
test ecx, ecx
sete al
test al, al
je 0x47b59e
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x47b56c
cmp eax, 1
jne 0x47b59e
cmp dword [esp + 0xa8], 0
sete al
test al, al
jne 0x47b59e
mov ecx, 0x11
lea esi, [esp + 0xa4]
lea edi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x47b5ae
cmp eax, 1
jne 0x47b5bd
cmp dword [esp + 0x130], 0
sete al
test al, al
je 0x47b5e4
test edx, edx
je 0x47b5c6
cmp edx, 1
jne 0x47b5e4
test ecx, ecx
sete al
test al, al
jne 0x47b5e4
mov ecx, 0x11
lea esi, [esp + 0xe8]
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
inc dword [ecx + 0x5a0]
mov eax, dword [ecx + 0x5a0]
imul eax, eax, 0x1e0
lea edi, [eax + ecx - 0x1e0]
inc ebx
mov ecx, 0x78
lea esi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
cmp ebx, 3
jb 0x47b320
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f4
ret 0x20