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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
add edx, 1
mov esi, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov eax, esi
lea ebp, [edx + 1]
mov edx, edi
call fcn.00401760
xor edx, edx
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, ebp
sub eax, ecx
cmp ebp, ecx
cmovle eax, edx
mov dword [esp + 0x38], eax
lea eax, [eax + ecx + 8]
test eax, eax
cmovs eax, edx
xor ebp, ebp
call fcn.00407230
mov dword [esp + 0x10], eax
test bl, bl
je 0x40845c
mov byte [eax], 0x2d
mov ebp, 1
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, 1
mov ecx, edx
setle al
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp eax, edx
jge 0x408520
sub ecx, eax
mov eax, 5
lea edx, [ecx - 1]
mov ebx, dword [edx*8 + 0x426104]
mul dword [edx*8 + 0x426100]
lea ebx, [ebx + ebx*4]
add edx, ebx
add eax, esi
mov ebx, dword [ecx*8 + 0x426104]
mov ecx, dword [ecx*8 + 0x426100]
adc edx, edi
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
call fcn.00421da0
mov dword [esp], esi
mov dword [esp + 0x34], eax
mov ebx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call fcn.00421da0
cmp eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
sbb edx, ebx
jae 0x4085f0
mov eax, dword [esp + 0x24]
mov esi, ecx
mov edi, ebx
add eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x84]
add eax, 2
mov dword [esp + 0x14], eax
mov edx, eax
jmp 0x408524
mov dword [esp + 0x14], edx
lea eax, [edx + ebp]
sub edx, dword [esp + 0x20]
lea ecx, [edx - 1]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x408790
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebp
mov ebx, ecx
add ebx, eax
lea eax, [ecx + eax + 1]
sub eax, edx
mov ebp, eax
lea esi, [esi]
lea esi, [esi]
mov dword [esp], esi
sub ebx, 1
mov dword [esp + 4], edi
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
call fcn.00421ea0
add eax, 0x30
mov byte [ebx + 1], al
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
call fcn.00421da0
mov esi, eax
mov edi, edx
cmp ebx, ebp
jne 0x408560
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
lea ebp, [eax + ebp - 1]
mov edx, dword [esp + 0x84]
test edx, edx
jne 0x408600
mov eax, dword [esp + 0x10]
mov byte [eax + ebp], 0
test eax, eax
je 0x40879d
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], 0
mov dword [eax], edi
mov dword [eax + 4], ebp
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ecx
mov edi, ebx
mov edx, dword [esp + 0x14]
jmp 0x408524
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x14]
sub ecx, edx
test eax, eax
jle 0x40862f
mov eax, dword [esp + 0x10]
mov byte [eax + ecx], 0x2e
mov eax, dword [esp + 0x24]
sub eax, 1
sub eax, edx
mov ecx, eax
lea eax, [ebp + 2]
mov ebp, ebx
mov ebx, eax
test ecx, ecx
mov dword [esp + 0x14], ecx
js 0x408666
mov dword [esp + 4], edi
mov ebp, ebx
add ebx, 1
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp], esi
call fcn.00421ea0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x30
mov byte [edi + ecx], al
mov edi, dword [esp + 0x38]
test edi, edi
jle 0x40868d
mov eax, dword [esp + 0x10]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x30
add eax, ebp
add ebp, edi
mov dword [esp], eax
lea ebx, [ebp + 1]
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
lea esi, [ebp + 2]
add ecx, dword [esp + 0x18]
mov byte [eax + ebp], 0x65
add eax, ebx
mov ebx, ecx
sub ebx, 1
js 0x408780
mov byte [eax], 0x2b
mov ecx, 0x66666667
mov eax, ebx
imul ecx
mov eax, ebx
sar eax, 0x1f
mov dword [esp + 0x24], eax
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
mov edi, edx
mov edx, ebx
add eax, eax
sub edx, eax
mov eax, edi
mov dword [esp + 0x20], edx
imul ecx
mov ecx, edx
mov edx, edi
sar edx, 0x1f
sar ecx, 2
sub ecx, edx
lea edx, [ebp + 3]
lea eax, [ecx + ecx*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
add eax, eax
sub edi, eax
mov eax, dword [esp + 0x10]
mov ecx, edi
add edx, eax
lea edi, [eax + esi]
mov dword [esp + 0x14], edx
cmp ebx, 0x63
jle 0x408737
mov eax, ebx
mov edx, 0x51eb851f
mov esi, dword [esp + 0x18]
imul edx
mov eax, dword [esp + 0x10]
mov ebx, edx
sar ebx, 5
sub ebx, dword [esp + 0x24]
add ebx, 0x30
mov byte [edi], bl
lea ebx, [eax + ebp + 4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
add ecx, 0x30
movzx eax, byte [esp + 0x20]
mov byte [edi], cl
mov edi, dword [esp + 0x14]
add eax, 0x30
mov byte [edi], al
mov edi, dword [esp + 0x10]
lea eax, [esi + 2]
mov byte [edi + esi + 2], 0
test edi, edi
je 0x40879d
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
mov byte [eax], 0x2d
sub ebx, ecx
jmp 0x4086b0
mov dword [esp + 0x34], 0
jmp 0x4085b5
call fcn.00407ac0
lea esi, [esi]
lea esi, [esi]