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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [ebp + 8]
mov ecx, 0x501
lea edx, [0x41f6b4]
mov word [esp + 0xca], 0x3fff
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0x235e
mov bl, byte [esp + 0xbf]
mov dword [esp + 0xac], 0x501
mov esi, dword [esp + 0xb8]
imul edi, esi, 0x22ad
mov dword [esp + 0xb8], edi
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0x3d46
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x2b35
mov dword [esp + 0xa8], eax
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0xac]
xor eax, 0x501
mov dword [esp + 0x44], eax
sub ecx, dword [esp + 0xac]
mov dword [esp + 0x94], ecx
mov eax, dword [esp + 0xac]
mov byte [esp + 0xbf], 0x11
add eax, 0xfffffaff
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], esi
mov byte [esp + 0x33], bl
jmp 0x4019c2
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0xa8]
mov word [esp + 0xc8], 0x44e0
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov esi, ecx
imul esi, edx
mov dword [esp + 0x2c], eax
mov eax, ecx
mul ecx
add edx, esi
add edx, esi
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
mov eax, 0x501
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0xc], 0x2800
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x40], eax
jmp 0x401955
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x1f68
mov dword [esp + 0x84], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0x75ec
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x9c]
xor ecx, eax
mov dword [esp + 0x9c], ecx
mov dl, byte [esp + 0x33]
add dl, dl
mov byte [esp + 0xbf], dl
xor eax, eax
mov dl, al
test dl, dl
jne 0x4019cf
jmp 0x401862
mov eax, dword [esp + 0xac]
add eax, 0xfffffb00
add eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
jmp 0x4019c2
mov ax, word [esp + 0xc8]
and ax, 0x1fbb
mov word [esp + 0xc8], ax
mov ecx, dword [esp + 0x94]
add ecx, dword [esp + 0x9c]
mov dword [esp + 0x94], ecx
jmp 0x401849
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + ecx*4 + 4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xb8], edx
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
lea ecx, [ecx + ecx*2]
add esi, esi
adc edi, edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], edi
mov eax, dword [eax + ecx*4 + 8]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x70]
xor ecx, eax
mov dword [esp + 0x70], ecx
mov bx, word [esp + 0xc0]
or bx, 0x2ebd
mov word [esp + 0xc0], bx
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov edi, esp
mov dword [edi + 8], ecx
mov dword [edi + 4], esi
mov dword [edi], eax
call fcn.004032e0
sub esp, 0xc
mov ecx, dword [esp + 0x44]
add ecx, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], eax
jmp 0x401acf
call section..text
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
xor eax, 0x36a1
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], eax
sub eax, 0x14c
sbb ecx, 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jb 0x4017c6
jmp 0x401a29
mov eax, esp
mov dword [eax], str.VirtualAlloc
call fcn.00402060
sub esp, 4
mov dword [esp + 0x54], eax
mov word [esp + 0x5a], 0x6f53
mov cx, word [esp + 0xca]
xor cx, 0x264c
cmp cx, word [esp + 0x5a]
jne 0x4019cf
jmp 0x401946
cmp dword [esp + 0x6c], 0x40
jb 0x4017c6
jmp 0x401991
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xac]
add ecx, 0xaff
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xac]
xor edx, 0x505
mov esi, dword [esp + 0x94]
mov edi, esp
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov dword [edi + 4], esi
mov dword [edi], 0
call eax
sub esp, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], 0
jmp 0x401955
cmp dword [esp + 0x40], 0x40
jb 0x40188d
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x5c]
mov edx, esp
mov dword [edx + 8], eax
mov dword [edx + 4], ecx
mov dword [edx], ecx
call fcn.00401b10
sub esp, 0xc
mov eax, dword [esp + 0x5c]
add eax, 0x9237
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
xor edx, 0xb79
mov dword [ecx], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edi, 0x3f501
sub edi, ecx
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x5c]
add eax, 0x4ec1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x80], eax
sub ecx, edx
sbb ebx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
jb 0x401747
jmp 0x401747
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
add esi, 0x4045
adc edi, 0
mov dword [esp + 0x38], edx
sub eax, esi
sbb ecx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jb 0x4017b6
jmp 0x401acf