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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb770
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x522d80]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor edi, edi
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
mov ebx, dword [esi + 0x1e0]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x28], ebx
cmp ebx, edi
je 0x470c02
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0x234]
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov edx, dword [esi + 0xdc8]
mov dword [esi + 0x574], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], 0x400
mov dword [esp + 0x54], 0x300
mov eax, dword [edx]
mov ecx, dword [eax]
push 0x2000
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x3c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov eax, dword [esi + 0xdd0]
cmp eax, edi
je 0x470c56
cmp eax, dword [esi + 0x1c8]
jl 0x470c81
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esi + 0x1c8]
cdq
sub eax, edx
mov edx, dword [esi + 0x1c4]
sar eax, 1
sub ecx, eax
sub ecx, 2
sub edx, 2
mov dword [esi + 0xdd0], ecx
mov dword [esi + 0xdcc], edx
cmp ebx, edi
jle 0x4712d4
lea ebx, [esi + 0x1cc]
nop
cmp edi, dword [ebx + 0x14]
jbe 0x470c9a
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470ca5
mov eax, dword [ebx + 4]
jmp 0x470ca8
lea eax, [ebx + 4]
mov al, byte [eax + edi]
mov byte [esp + 0x10], al
lea eax, [edi + 2]
cmp eax, dword [ebx + 0x14]
jbe 0x470cbc
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470cc7
mov eax, dword [ebx + 4]
jmp 0x470cca
lea eax, [ebx + 4]
mov cl, byte [eax + edi + 2]
push 0
mov byte [esp + 0x15], cl
push 0x4cf96b
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a], 0
call fcn.00402870
push 0
push 0x4cf96b
lea ecx, [esp + 0x60]
call fcn.00402870
cmp byte [esp + 0x10], 0xff
jne 0x471045
cmp byte [esp + 0x11], 0xff
jne 0x471045
add edi, 3
cmp edi, dword [ebx + 0x14]
jbe 0x470d1a
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470d25
mov eax, dword [ebx + 4]
jmp 0x470d28
lea eax, [ebx + 4]
movsx eax, byte [eax + edi]
inc edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x470db9
lea edx, [edi + 2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp edi, dword [ebx + 0x14]
jbe 0x470d4e
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470d59
mov eax, dword [ebx + 4]
jmp 0x470d5c
lea eax, [ebx + 4]
mov cl, byte [eax + edi]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
push edx
push 1
lea ecx, [esp + 0x7c]
call fcn.004026e0
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x14]
jbe 0x470d81
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470d8c
mov eax, dword [ebx + 4]
jmp 0x470d8f
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + ecx]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x3c]
push eax
push 1
lea ecx, [esp + 0x7c]
call fcn.004026e0
add dword [esp + 0x14], 3
add edi, 3
sub dword [esp + 0x18], 1
jne 0x470d44
cmp edi, dword [ebx + 0x14]
jbe 0x470dc3
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470dce
mov eax, dword [ebx + 4]
jmp 0x470dd1
lea eax, [ebx + 4]
movsx eax, byte [eax + edi]
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
test eax, eax
jle 0x470e6c
lea ecx, [edi + 2]
mov edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
cmp edi, dword [ebx + 0x14]
jbe 0x470dfd
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470e08
mov eax, dword [ebx + 4]
jmp 0x470e0b
lea eax, [ebx + 4]
mov al, byte [eax + edi]
mov byte [esp + 0x44], al
mov ecx, dword [esp + 0x44]
push ecx
push 1
lea ecx, [esp + 0x60]
call fcn.004026e0
mov edx, dword [esp + 0x18]
cmp edx, dword [ebx + 0x14]
jbe 0x470e30
call fcn.00497123
cmp dword [ebx + 0x18], 0x10
jb 0x470e3b
mov eax, dword [ebx + 4]
jmp 0x470e3e
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x60]
call fcn.004026e0
add dword [esp + 0x18], 3
add edi, 3
sub dword [esp + 0x20], 1
jne 0x470df3
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x4d4]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esi + 0x570]
mov dword [esp + 0x18], edx
mov dword [esi + 0x570], 1
mov edi, eax
mov eax, dword [esp + 0x14]
inc eax
imul eax, ecx
add eax, dword [esi + 0x1c4]
add eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x23c]
jl 0x470f56
mov ecx, esi
call fcn.0046aa30
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
jge 0x470f07
mov ecx, esi
call fcn.0046a900
mov edx, dword [esi + 0x1b8]
add edx, 3
cmp dword [esp + 0x28], edx
jg 0x470f56
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.0046a7c0
mov dword [esi + 0x1b8], 0
jmp 0x4712d2
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.0046a7c0
cmp dword [esi + 0x1bc], 0
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
je 0x470f56
mov eax, 1
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x470f56
mov dword [esi + 0x578], eax
lea eax, [esp + 0x34]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x9c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00402790
mov eax, dword [esp + 0x34]
push eax
push edi
mov ecx, esi
call fcn.0046b860
mov eax, dword [esp + 0x14]
add eax, eax
xor edi, edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x471032
cmp edi, dword [esp + 0x6c]
jbe 0x470fb3
call fcn.00497123
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x470fc2
lea eax, [esp + 0x5c]
mov cl, byte [eax + edi]
xor cl, byte [esi + 0xcf9]
lea eax, [edi + 1]
mov byte [esp + 0x10], cl
cmp eax, dword [esp + 0x6c]
jbe 0x470fdd
call fcn.00497123
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x470fec
lea eax, [esp + 0x5c]
mov dl, byte [esi + 0xcf9]
add dl, byte [esi + 0x8a8]
push 0
xor dl, byte [eax + edi + 1]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esp + 0x1d], dl
call fcn.00470b30
mov edx, dword [esi + 0x4d4]
add edx, dword [esi + 0xc8]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x1c]
jl 0x470fa8
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [esi + 0x570], eax
jmp 0x4711f6
add edi, 3
cmp byte [esp + 0x10], 0xfe
je 0x47118f
cmp byte [esp + 0x11], 0xfe
je 0x47118f
cmp dword [esi + 0x230], 1
jne 0x47107c
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.0046a7c0
mov al, byte [esi + 0xcf9]
mov cl, byte [esi + 0x8ac]
xor byte [esp + 0x10], al
add cl, al
push 0
dec cl
xor byte [esp + 0x15], cl
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00470b30
mov ecx, esi
call fcn.0046aa30
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x4d4]
mov edx, dword [esi + 0x1c4]
add eax, eax
lea edx, [edx + ecx*2]
add edx, eax
cmp edx, dword [esi + 0x23c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
jl 0x471179
mov eax, dword [esi + 0x238]
mov ecx, esi
mov dword [esi + 0x1c4], eax
call fcn.0046aa30
mov ecx, dword [esi + 0x4d8]
add ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x1c8]
add ecx, edx
cmp ecx, dword [esi + 0x240]
jge 0x471205
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
jge 0x471249
inc dword [esi + 0x1c0]
inc eax
cmp edi, dword [esp + 0x28]
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], eax
jle 0x4711fa
push edi
mov ecx, ebx
call fcn.00402390
movzx eax, byte [eax]
lea ecx, [edi + 2]
push ecx
mov ecx, ebx
mov byte [esp + 0x14], al
call fcn.00402390
cmp byte [esp + 0x10], 0xfe
mov al, byte [eax]
mov byte [esp + 0x12], 0
je 0x471171
cmp al, 0xfe
jne 0x4711f6
add edi, 3
jmp 0x4711f6
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x1c4]
add edx, ecx
mov dword [esi + 0x1c4], edx
jmp 0x4711f6
mov ecx, esi
call fcn.0046aa30
cmp dword [esp + 0x24], 0
jne 0x4711f6
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0xcc]
inc dword [esi + 0x1bc]
inc dword [esi + 0x1c0]
mov dword [esi + 0x1c4], eax
mov eax, dword [esi + 0x4d8]
lea edx, [ecx + eax]
add dword [esi + 0x1c8], edx
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
mov dword [esp + 0x24], 1
jg 0x471293
mov edx, dword [esi + 0x1c8]
add edx, ecx
add edx, eax
cmp edx, dword [esi + 0x240]
jge 0x471275
cmp edi, dword [esp + 0x28]
jl 0x470c90
jmp 0x4712d2
mov edi, 1
cmp dword [esi + 0x230], edi
jne 0x471227
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
mov ecx, esi
call fcn.0046a7c0
mov ecx, esi
call fcn.0046a660
cmp dword [esi + 0x1bc], 0
je 0x4712c8
mov dword [esi + 0x204], edi
mov dword [esi + 0x208], edi
jmp 0x4712b4
cmp dword [esi + 0x230], 1
jne 0x471267
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.0046a7c0
mov ecx, esi
call fcn.0046a660
call fcn.00435ad0
jmp 0x4712c8
cmp dword [esi + 0x230], 1
jne 0x471293
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.0046a7c0
mov ecx, esi
call fcn.0046a660
cmp dword [esi + 0x1bc], 0
je 0x4712c8
mov eax, 1
mov dword [esi + 0x208], eax
mov dword [esi + 0x204], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x4712c8
mov dword [esi + 0x578], eax
mov dword [esi + 0x574], 0
xor edi, edi
mov edx, dword [esi + 0xdc8]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov ecx, esi
call fcn.0046aa80
mov eax, dword [esi + 0x4d4]
add eax, dword [esi + 0xc8]
add dword [esi + 0x1c4], eax
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x471316
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00485fc1
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x8c], esi
jb 0x47133d
mov edx, dword [esp + 0x78]
push edx
call fcn.00485fc1
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00497565
mov esp, ebp
pop ebp
ret 8