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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0xffffffc4
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
mov edi, dword [ebp + 0x764]
test esi, esi
sete byte [esp + 0x1c]
movzx ecx, byte [esp + 0x1c]
test edi, edi
setne al
and al, cl
mov byte [esp + 0x28], al
je 0x47c8b0
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0xb4]
mov eax, dword [esp + 0x78]
test ebx, ebx
je 0x47c9f4
mov edi, dword [eax + 4]
cmp dword [eax + 8], edi
jae 0x47c8d5
cmp dword [esp + 0x7c], 2
je 0x47d00b
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x758]
mov esi, dword [ebp + 0x75c]
mov eax, dword [ebp + 0x760]
lea edx, [ecx + esi]
cmp eax, edx
jbe 0x47d032
lea esi, [esi]
and esi, ecx
mov eax, dword [ebp + 4]
imul esi, esi, 0x108
add eax, esi
add eax, 8
mov dword [esp], eax
call dword [esp + 0x24]
sub esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x47ccb3
mov eax, dword [ebp + 4]
add eax, esi
mov ebx, dword [eax + 4]
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x28], edi
mov edi, dword [eax + 0x40]
mov dword [esp], eax
mov dword [esp + 0x1c], edi
call dword [esp + 0x20]
sub esp, 4
cmp ebx, 0xffffff88
ja 0x47d077
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x28], edi
je 0x47cd45
test ebx, ebx
jne 0x47cf90
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x28], esi
mov ebx, 1
jb 0x47c9d0
mov eax, dword [ebp + 0x760]
cmp dword [ebp + 0x75c], eax
jb 0x47c9d0
mov eax, dword [ebp + 0xb4]
test eax, eax
jne 0x47c9d0
mov ebx, dword [ebp + 0xc8]
test ebx, ebx
jne 0x47d28a
cmp dword [esp + 0x7c], 2
mov eax, dword [ebp + 0x764]
mov dword [ebp + 0x768], eax
jne 0x47c9d0
xor ebx, ebx
test eax, eax
sete bl
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x78]
mov edi, dword [eax + 4]
cmp dword [eax + 8], edi
jae 0x47c8a3
test ebx, ebx
mov eax, 1
cmove ebx, eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x78]
mov eax, dword [eax + 4]
mov edx, dword [edi + 8]
cmp eax, edx
ja 0x47cd90
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc8]
cmp eax, dword [ebp + 0xac]
jae 0x47ca60
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x47d066
test eax, eax
jne 0x47ca60
cmp dword [esp + 0x7c], 2
jne 0x47d066
mov edi, dword [ebp + 0x764]
test edi, edi
jne 0x47d066
mov esi, esi
lea edi, [edi]
mov ecx, dword [ebp + 0x758]
mov esi, dword [ebp + 0x75c]
mov edi, dword [ebp + 0x760]
lea ebx, [esi + ecx]
mov dword [esp + 0x1c], edi
cmp ebx, edi
jb 0x47c910
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc0]
and esi, ecx
mov edx, edi
mov dword [esp + 0x30], edi
imul edi, esi, 0x108
mov ecx, 0x26
mov esi, edi
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 4]
mov ebx, edi
mov dword [esp + 0x3c], edi
mov edi, dword [ebp + 0xbc]
add ebx, esi
mov esi, dword [ebp + 0xb8]
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], edi
mov dword [ebx], 0
lea edi, [ebx + 0x58]
mov dword [ebx + 0x3c], esi
mov dword [ebx + 4], 0
lea esi, [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x47caea
mov ecx, dword [ebp + 0x798]
cmp dword [esp + 0x7c], 2
mov dword [ebx + 0xf0], ecx
mov ecx, dword [ebp + 0x774]
sete dl
mov esi, edx
mov edx, dword [ebp + 0x770]
mov dword [ebx + 0xfc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0xf8], edx
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x2c], ecx
lea ecx, [ebp + 0xd8]
mov dword [ebx + 0x30], ecx
xor ecx, ecx
test edx, edx
sete cl
mov edx, dword [ebp + 0x38]
mov dword [ebx + 0x50], ecx
mov ecx, esi
movzx edi, cl
mov ecx, dword [esp + 0x1c]
test edx, edx
mov dword [esp + 0x34], edi
mov dword [ebx + 0x54], edi
setne dl
test ecx, ecx
mov edi, edx
setne byte [esp + 0x28]
movzx edx, byte [esp + 0x28]
mov ecx, edi
test dl, cl
je 0x47d130
mov ecx, esi
test cl, cl
je 0x47d130
mov dword [ebx + 0x104], 1
mov dword [ebx + 0x100], 0
add dword [ebp + 0xd4], eax
mov dword [ebp + 0xc0], 0
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0xc8], 0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov dword [ebp + 0xb8], 0
mov dword [ebp + 0xbc], 0
test edi, edi
mov dword [ebp + 0x764], esi
je 0x47d1fa
nop
lea esi, [esi]
test eax, eax
jne 0x47d03d
mov esi, dword [ebp + 0x760]
test esi, esi
je 0x47d03d
mov edi, dword [ebx + 0x28]
mov esi, dword [edi + 0x18]
mov dword [esp], edi
call dword [esp + 0x24]
mov eax, dword [edi + 0x20]
sub esp, 4
test eax, eax
je 0x47d2d5
lea edx, [eax - 1]
mov dword [edi + 0x20], edx
lea edx, [edi + eax*8 + 0x28]
lea eax, [edi + eax*8]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, edx
shr eax, 3
cmp esi, eax
jb 0x47d2b8
cmp esi, edx
mov dword [esp + 0x28], edx
ja 0x47d2b8
mov dword [esp + 0x1c], ecx
mov dword [esp], edi
call dword [esp + 0x20]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
test ecx, ecx
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], edx
je 0x47d71f
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00419710
mov dword [ebx + 4], eax
add dword [ebp + 0x760], 1
mov esi, dword [ebp + 0x75c]
mov ecx, dword [ebp + 0x758]
jmp 0x47c910
mov eax, dword [ebp + 0x760]
cmp dword [ebp + 0x75c], eax
mov eax, esi
jae 0x47d000
add eax, dword [ebp + 4]
mov ebx, dword [eax + 4]
cmp ebx, dword [eax + 0x100]
jne 0x47c93e
mov edx, dword [eax]
cmp dword [eax + 0x48], edx
mov edi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
je 0x47d72b
lea esi, [esi]
lea edx, [eax + 8]
add eax, 0x20
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call edi
mov eax, dword [ebp + 4]
sub esp, 0xc
add eax, esi
mov ebx, dword [eax + 4]
cmp dword [eax + 0x100], ebx
jne 0x47c93e
mov edx, dword [eax]
mov ecx, dword [eax + 0x48]
cmp edx, ecx
jne 0x47ccf0
add eax, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
mov dword [esp], eax
call dword [esp + 0x20]
sub esp, 4
cmp ebx, 0xffffff88
ja 0x47d077
mov eax, dword [ebp + 4]
mov edx, dword [eax + esi + 0x104]
test edx, edx
je 0x47c96f
lea eax, [ebp + 0x6b0]
add ebx, 4
mov dword [esp], eax
call fcn.00407a90
mov ecx, dword [ebp + 4]
add ecx, esi
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 0x34]
mov dword [edi + edx], eax
add edx, 4
mov dword [ecx + 0x104], 0
mov dword [ecx + 4], edx
jmp 0x47cf95
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 0xc0]
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov dword [esp + 0x20], esi
je 0x47d3c9
mov ebx, dword [esp + 0x78]
sub eax, edx
mov ecx, dword [ebp + 0x64]
mov esi, dword [ebx]
add esi, edx
mov edx, dword [ebp + 0xac]
mov dword [esp + 0x48], esi
mov esi, dword [ebp + 0xc8]
sub edx, esi
mov dword [esp + 0x30], esi
cmp edx, eax
cmova edx, eax
test ecx, ecx
mov dword [esp + 0x34], edx
je 0x47d294
add eax, dword [esp + 0x30]
cmp eax, 0x1ffff
jbe 0x47d20e
mov eax, dword [esp + 0x34]
add eax, esi
cmp eax, 0x1f
jbe 0x47d20e
mov eax, dword [ebp + 0x748]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x74c]
cmp esi, 0x1ffff
mov dword [esp + 0x3c], eax
ja 0x47d313
mov eax, 0x20000
mov ebx, eax
mov eax, esi
sub ebx, esi
cmp ebx, 0x1f
mov dword [esp + 0x40], ebx
jbe 0x47d5a7
mov esi, dword [esp + 0x48]
mov dword [esp + 0x70], ebp
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x44], edi
sub esi, eax
mov eax, esi
add eax, 0x1ffe0
mov esi, eax
mov dword [esp + 0x4c], eax
add eax, 0x20
mov dword [esp + 0x2c], eax
mov ebp, esi
nop
lea esi, [esi]
imul eax, ecx, 0xcf1bbcdc
imul esi, ebx, 0xb7a56463
add esi, eax
mov eax, 0xb7a56463
mul ecx
mov ebx, edx
mov ecx, eax
add ebx, esi
movzx esi, byte [ebp]
add esi, 0xa
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add ebp, 1
cmp dword [esp + 0x2c], ebp
jne 0x47ce70
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x70]
add eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x34], eax
jbe 0x47d780
mov edi, dword [ebp + 0x750]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x40], edi
mov edi, dword [ebp + 0x754]
add esi, eax
mov dword [esp + 0x2c], esi
mov ebp, eax
mov dword [esp + 0x44], edi
jmp 0x47cf76
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + ebp]
add eax, 0xa
mov edx, dword [esp + 0x44]
mov edi, eax
sar edi, 0x1f
mov esi, edi
mov edi, dword [esp + 0x40]
imul edx, eax
imul esi, edi
add esi, edx
mul edi
add edx, esi
sub ecx, eax
sbb ebx, edx
imul esi, ebx, 0xb7a56463
imul eax, ecx, 0xcf1bbcdc
add esi, eax
mov eax, 0xb7a56463
mul ecx
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov ebx, edx
add ebx, esi
movzx esi, byte [eax]
add esi, 0xa
mov edi, esi
sar edi, 0x1f
add ecx, esi
mov esi, dword [esp + 0x3c]
adc ebx, edi
mov edi, dword [esp + 0x38]
mov edx, esi
mov eax, edi
and edx, ebx
and eax, ecx
xor edx, esi
xor eax, edi
or edx, eax
je 0x47d391
add ebp, 1
add dword [esp + 0x2c], 1
cmp dword [esp + 0x34], ebp
je 0x47d4f7
cmp ebp, 0x1f
jbe 0x47cef0
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax - 0x20]
jmp 0x47cef8
mov ecx, dword [ebp + 4]
add ecx, esi
mov edi, dword [ecx + 0x100]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x74]
mov eax, dword [eax + 8]
mov edi, dword [edi + 4]
mov dword [esp + 0x30], edi
sub edi, eax
mov edx, edi
mov edi, ebx
sub edi, dword [esp + 0x2c]
cmp edx, edi
cmovbe edi, edx
test edi, edi
jne 0x47d1c2
mov edx, dword [esp + 0x74]
add eax, edi
add edi, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x28], edx
mov dword [ecx + 0x100], edi
jne 0x47cfed
cmp edi, ebx
je 0x47d505
cmp ebx, edi
jbe 0x47c977
sub ebx, edi
jmp 0x47c9d0
add eax, dword [ebp + 4]
mov ebx, dword [eax + 4]
jmp 0x47c93e
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x7c], 1
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], eax
jmp 0x47c8ef
and eax, ecx
imul ebx, eax, 0x108
add ebx, dword [ebp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x47a1d0
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.004066e0
test eax, eax
jne 0x47d1a0
mov dword [ebp + 0xb4], 1
mov esi, dword [ebp + 0x75c]
mov ecx, dword [ebp + 0x758]
jmp 0x47c910
mov esi, dword [ebp + 0x75c]
cmp dword [ebp + 0x760], esi
mov edi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
jbe 0x47d11e
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov esi, dword [esp + 0x24]
lea esi, [esi]
and ebx, dword [ebp + 0x758]
mov eax, dword [ebp + 4]
imul ebx, ebx, 0x108
add eax, ebx
add eax, 8
mov dword [esp], eax
call esi
mov eax, dword [ebp + 4]
sub esp, 4
add eax, ebx
mov edx, dword [eax + 0x48]
cmp dword [eax], edx
jae 0x47d0f6
nop
lea esi, [esi]
lea edx, [eax + 8]
add eax, 0x20
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call edi
mov eax, dword [ebp + 4]
sub esp, 0xc
add eax, ebx
mov ecx, dword [eax + 0x48]
cmp dword [eax], ecx
jb 0x47d0d0
add eax, 8
mov dword [esp], eax
call dword [esp + 0x20]
mov eax, dword [ebp + 0x75c]
sub esp, 4
lea ebx, [eax + 1]
cmp ebx, dword [ebp + 0x760]
mov dword [ebp + 0x75c], ebx
jb 0x47d0a0
mov ebx, dword [esp + 0x1c]
mov eax, ebp
call fcn.00479f40
jmp 0x47c9d0
mov dword [ebx + 0x104], 0
mov dword [ebx + 0x100], 0
add dword [ebp + 0xd4], eax
cmp dword [esp + 0x7c], 2
mov dword [ebp + 0xc0], 0
mov dword [ebp + 0xc4], 0
mov dword [ebp + 0xc8], 0
je 0x47cbbe
cmp dword [ebp + 0xb0], eax
mov ecx, eax
mov edx, eax
cmovbe ecx, dword [ebp + 0xb0]
sub edx, ecx
add edx, dword [esp + 0x30]
mov dword [ebp + 0xbc], ecx
mov dword [ebp + 0xb8], edx
jmp 0x47cbf0
add dword [ebp + 0x760], 1
mov dword [ebp + 0xb4], 0
mov esi, dword [ebp + 0x75c]
mov ecx, dword [ebp + 0x758]
jmp 0x47c910
mov edx, dword [esp + 0x74]
add eax, dword [edx]
mov edx, dword [esp + 0x2c]
add edx, dword [ecx + 0x34]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x74]
add ecx, esi
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0x100]
mov dword [esp + 0x2c], edx
jmp 0x47cfc8
mov ebx, dword [esp + 0x3c]
mov dword [ebp + 0x38], 0
add ebx, dword [esp + 0x38]
jmp 0x47cbf0
cmp dword [esp + 0x7c], 2
mov ebx, dword [esp + 0x34]
sete byte [esp + 0x28]
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
add eax, edi
mov edi, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [esp + 0x78]
mov edx, dword [ebp + 0xb4]
mov eax, dword [esi + 8]
add eax, edi
mov dword [esi + 8], eax
add dword [ebp + 0xc8], edi
mov edi, esi
cmp dword [edi + 4], eax
jbe 0x47d27d
cmp byte [esp + 0x28], 0
mov eax, 1
cmove eax, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
test edx, edx
je 0x47ca20
jmp 0x47c8ef
mov ebx, 1
jmp 0x47c9d0
cmp dword [esp + 0x7c], 2
sete byte [esp + 0x28]
xor eax, eax
test edx, edx
setne al
mov dword [esp + 0x2c], eax
mov eax, esi
add eax, edi
mov edi, edx
mov dword [esp + 0x30], eax
jmp 0x47d233
mov eax, dword [edi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00408210
mov dword [esp], edi
call dword [esp + 0x20]
mov eax, dword [edi + 0x24]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00408180
test eax, eax
je 0x47d711
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], esi
mov edx, esi
mov ecx, eax
jmp 0x47cc7e
mov eax, esi
lea esi, [edi + esi - 0x20]
mov dword [esp + 0x70], ebp
add edi, eax
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], edi
mov ebp, esi
lea esi, [esi]
imul eax, ecx, 0xcf1bbcdc
imul esi, ebx, 0xb7a56463
add esi, eax
mov eax, 0xb7a56463
mul ecx
mov ebx, edx
mov ecx, eax
add ebx, esi
movzx esi, byte [ebp]
add esi, 0xa
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add ebp, 1
cmp dword [esp + 0x30], ebp
jne 0x47d330
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x70]
mov eax, edi
mov edx, esi
and eax, ecx
and edx, ebx
xor eax, edi
xor edx, esi
or edx, eax
je 0x47d76b
mov dword [esp + 0x40], 0
jmp 0x47ceb6
mov eax, ebp
mov ebp, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x1c], 0
je 0x47d78a
mov dword [esp + 0x7c], 1
mov edi, dword [esp + 0x34]
jmp 0x47d233
mov eax, dword [ebp + 0x760]
mov edi, dword [ebp + 0x75c]
cmp edi, eax
mov dword [esp + 0x2c], eax
jae 0x47d648
mov eax, dword [ebp + 4]
jmp 0x47d3fd
add edi, 1
cmp dword [esp + 0x2c], edi
jbe 0x47d648
mov ebx, dword [ebp + 0x758]
and ebx, edi
imul ebx, ebx, 0x108
lea eax, [eax + ebx + 8]
mov dword [esp], eax
call dword [esp + 0x24]
mov eax, dword [ebp + 4]
sub esp, 4
add eax, ebx
mov esi, dword [eax]
add eax, 8
mov dword [esp], eax
call dword [esp + 0x20]
mov eax, dword [ebp + 4]
sub esp, 4
add ebx, eax
mov edx, dword [ebx + 0x48]
cmp esi, edx
jae 0x47d3f0
mov eax, dword [ebx + 0x40]
mov esi, dword [ebx + 0x3c]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x47d44e
mov esi, dword [ebx + 0x44]
mov dword [esp + 0x30], edx
mov ebx, dword [ebp + 0xd4]
mov edx, dword [ebp + 0xd0]
test esi, esi
mov edi, dword [ebp + 0xac]
sete al
mov ecx, eax
sub edx, ebx
cmp edx, edi
mov dword [esp + 0x34], edi
jae 0x47d6b9
mov ebx, dword [ebp + 0xcc]
mov edi, dword [ebp + 0xbc]
test ebx, ebx
sete dl
or dl, al
mov byte [esp + 0x2c], dl
jne 0x47d79d
mov edx, dword [esp + 0x30]
lea eax, [ebx + edi]
add edx, esi
cmp ebx, eax
je 0x47d685
cmp edx, esi
je 0x47d685
cmp ebx, edx
setb dl
cmp eax, esi
seta al
and dl, al
mov byte [esp + 0x2c], dl
je 0x47d685
mov edi, dword [ebp + 0xc0]
test edi, edi
mov eax, dword [esp + 0x78]
jne 0x47d7a6
cmp dword [esp + 0x7c], 2
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0xb4]
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x78]
sete byte [esp + 0x28]
jmp 0x47d265
mov ebp, dword [esp + 0x70]
mov byte [esp + 0x1c], 0
jmp 0x47d39e
mov eax, dword [ecx + 0x34]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x47d566
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
mov dword [esp], edi
mov dword [esp + 0x30], eax
call dword [esp + 0x24]
mov eax, dword [edi + 0x20]
sub esp, 4
cmp eax, dword [edi + 0x1c]
jb 0x47d73a
mov dword [esp], edi
call dword [esp + 0x20]
mov eax, dword [edi + 0x24]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00408210
add esi, dword [ebp + 4]
mov edi, dword [esi + 0x100]
mov ecx, esi
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
xor edx, edx
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x1c]
add dword [ebp + 0x778], eax
adc dword [ebp + 0x77c], edx
xor edx, edx
add dword [ebp + 0x780], ebx
adc dword [ebp + 0x784], edx
add dword [ebp + 0x75c], 1
jmp 0x47cfed
lea eax, [edi + esi - 0x20]
mov ebx, esi
mov dword [esp + 0x70], ebp
add edi, ebx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x4c], eax
add eax, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov esi, eax
mov ebp, esi
imul eax, ecx, 0xcf1bbcdc
imul esi, ebx, 0xb7a56463
add esi, eax
mov eax, 0xb7a56463
mul ecx
mov ebx, edx
mov ecx, eax
add ebx, esi
movzx esi, byte [ebp]
add esi, 0xa
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add ebp, 1
cmp dword [esp + 0x30], ebp
jne 0x47d5c7
mov eax, dword [esp + 0x48]
mov esi, eax
add eax, dword [esp + 0x40]
mov ebp, esi
mov dword [esp + 0x2c], eax
imul eax, ecx, 0xcf1bbcdc
imul esi, ebx, 0xb7a56463
add esi, eax
mov eax, 0xb7a56463
mul ecx
mov ebx, edx
mov ecx, eax
add ebx, esi
movzx esi, byte [ebp]
add esi, 0xa
mov edi, esi
sar edi, 0x1f
add ecx, esi
adc ebx, edi
add ebp, 1
cmp dword [esp + 0x2c], ebp
jne 0x47d60b
mov ebp, dword [esp + 0x70]
jmp 0x47ceb6
mov eax, dword [ebp + 0xac]
mov ebx, dword [ebp + 0xd4]
mov edi, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xd0]
sub eax, ebx
cmp edi, eax
jbe 0x47d732
mov ebx, dword [ebp + 0xcc]
mov edi, dword [ebp + 0xbc]
xor esi, esi
mov byte [esp + 0x2c], 1
mov dword [esp + 0x30], 0
mov edx, ebx
mov ecx, edi
mov eax, ebp
call fcn.00479e60
mov dword [esp + 8], edi
mov eax, dword [ebp + 0xb8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memmove
movzx ecx, byte [esp + 0x2c]
mov dword [ebp + 0xb8], ebx
mov ebx, edi
mov dword [ebp + 0xd4], edi
add ebx, dword [ebp + 0xcc]
je 0x47d6e5
test cl, cl
jne 0x47d6e5
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add eax, ebx
add edx, esi
cmp ebx, eax
je 0x47d6e5
cmp edx, esi
je 0x47d6e5
cmp ebx, edx
jae 0x47d6e5
cmp eax, esi
ja 0x47d4c1
mov edi, dword [esp + 0x34]
mov edx, ebx
mov eax, ebp
mov ecx, edi
call fcn.00479e60
mov dword [ebp + 0xc4], edi
mov dword [ebp + 0xc0], ebx
mov edi, ebx
mov dword [ebp + 0xc8], 0
jmp 0x47d4c7
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 4], 0xffffffc0
jmp 0x47cc9b
mov ecx, edx
jmp 0x47cd27
add ebx, dword [ebp + 0xcc]
jmp 0x47d6e5
lea edx, [eax + 1]
lea eax, [edi + eax*8 + 0x30]
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov dword [esp], edi
call dword [esp + 0x20]
add esi, dword [ebp + 4]
sub esp, 4
mov ecx, esi
mov edi, dword [esi + 0x100]
jmp 0x47d566
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
jmp 0x47d3ad
mov byte [esp + 0x1c], 0
jmp 0x47d39e
cmp dword [esp + 0x7c], 2
mov edi, dword [esp + 0x34]
sete byte [esp + 0x28]
jmp 0x47d233
mov byte [esp + 0x2c], al
jmp 0x47d685
mov esi, dword [esp + 0x78]
mov eax, dword [eax + 4]
mov edx, dword [esi + 8]
jmp 0x47cdb2