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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [ebp + 8]
mov cl, 0x45
mov word [esp + 0xb8], 0x44f5
mov byte [esp + 0xa7], 0x51
mov dword [esp + 0xa0], 0x36d8
mov dword [esp + 0x50], 0xbd1
mov dl, byte [esp + 0xa7]
mov ch, dl
add ch, 0x22
mov byte [esp + 0x38], ch
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov ebx, esi
add ebx, 0xffffde9c
mov dword [esp + 0x28], eax
mov eax, edi
adc eax, 0xffffffff
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], eax
mov eax, esi
add eax, 0x2f20
mov ebx, edi
adc ebx, 0
mov byte [esp + 0x27], dl
mov dx, word [esp + 0xb8]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], eax
mov ax, dx
xor ax, 0x3677
mov word [esp + 0x3a], ax
mov ebx, dword [esp + 0xa0]
mov eax, ebx
xor eax, 0x67af
mov dword [esp + 0x34], eax
sub cl, byte [esp + 0xa7]
mov ax, word [esp + 0x3a]
mov byte [esp + 0x9b], cl
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x1a], dx
mov dword [esp + 0x14], esi
mov word [esp + 0x12], ax
call fcn.004029a0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, esp
mov dword [ecx], eax
call fcn.00402880
sub esp, 4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
add eax, 0x18
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0xb3], 0xff
mov ecx, dword [esp + 0x70]
add eax, dword [ecx + 0x60]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x70]
mov dx, word [esp + 0x12]
cmp dx, 0x6d60
mov dword [esp + 0xc], eax
jae 0x402490
jmp 0x402593
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
add eax, 0x407b
mov cl, byte [esp + 0x38]
mov dword [esp + 0xb4], eax
cmp cl, 0x80
jbe 0x402786
jmp 0x4026cc
mov ax, word [esp + 0x1a]
xor ax, 0xffff
mov word [esp + 0xba], ax
mov ecx, dword [esp + 0xa0]
mov dl, byte [esp + 0x27]
and dl, 0x83
add ecx, 0xffffc928
mov byte [esp + 0xb3], dl
mov esi, dword [esp + 0xc]
mov edi, dword [esi + 0x64]
mov dword [esp + 0x44], edi
mov ax, word [esp + 0x1a]
imul bx, ax, 0x3f3f
mov word [esp + 0xba], bx
mov dword [esp + 0x40], 0xffffffff
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x48]
mov edi, dword [edi + 0x20]
add edx, edi
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x80]
add edx, dword [edi + 0x24]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], ecx
jmp 0x40262c
mov eax, 0x36d9
mov ecx, dword [esp + 0xa0]
mov dl, byte [esp + 0x27]
mov dword [esp + 8], eax
mov al, dl
mul dl
mov byte [esp + 0xb3], al
mov esi, dword [esp + 8]
sub esi, ecx
mov byte [esp + 0xb3], 0xfe
add esi, dword [esp + 0x4c]
mov dword [esp + 0x4c], esi
jmp 0x402672
mov al, 0x8e
mov cl, byte [esp + 0xa7]
mov dword [esp + 0xb4], 0xf68
mov dl, byte [esp + 0xa7]
xor cl, 0xe9
sub al, dl
mov esi, dword [esp + 0x84]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x39], al
cmp byte [esp + 0x39], cl
je 0x402640
cmp dword [esp + 0x2c], 0
jne 0x402720
jmp 0x4026cc
jmp 0x40254a
mov eax, dword [esp + 0x8c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x14]
add eax, 0x4c5b
mov ecx, dword [esp + 0x20]
adc ecx, 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
jmp 0x402657
movzx eax, word [esp + 0x8a]
mov dword [esp + 0x40], eax
jmp 0x402640
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x90]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x8c], eax
jmp 0x4026f8
mov dword [esp + 0x8c], 0
jmp 0x4026f8
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
cmp dword [esp + 0x64], eax
jb 0x402466
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa0]
add ecx, 0xffffc927
cmp eax, ecx
je 0x40261c
jmp 0x4025d7
mov eax, 0x79e4
sub eax, dword [esp + 0xa0]
cmp eax, dword [esp + 0x50]
je 0x402593
jmp 0x402510
mov eax, 0x519e
mov ecx, dword [esp + 0x1c]
imul ecx, ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xb4], ecx
sub eax, dword [esp + 0xa0]
xor edx, 0x3d91
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x1c]
or ecx, 0x6257
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x54]
mov si, word [esp + 0x1a]
mov word [esp + 0xba], si
cmp ecx, eax
ja 0x40262c
jmp 0x402843
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], eax
cmp ecx, 0x41e9
je 0x4026f8
jmp 0x402773
cmp dword [esp + 0x7c], 0x20
jb 0x4027bd
jmp 0x40254a
mov al, 0x5c
sub al, byte [esp + 0xa7]
mov byte [esp + 0x6b], al
mov al, byte [esp + 0x6b]
mov cl, byte [esp + 0xa7]
add cl, 0xc2
cmp al, cl
je 0x40262c
jmp 0x402595
mov eax, 0xb229
sub eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x6c]
mov dx, word [ecx]
mov word [esp + 0x8a], dx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa0]
xor eax, 0xcd1
mov word [esp + 0xba], 0x3fdc
mov ecx, dword [esp + 0x30]
mov bl, byte [esp + 0x27]
and bl, bl
mov byte [esp + 0xb3], bl
cmp eax, ecx
jbe 0x4025c9
jmp 0x40261c
mov eax, dword [esp + 0x94]
add eax, 2
mov dword [esp + 0x6c], eax
jmp 0x402833
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xa0]
xor ecx, 0x36d8
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
add eax, dword [esi + edx*4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x4c], 0
jmp 0x402672
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
mov bl, byte [eax + edx]
mov eax, dword [esp + 0x9c]
movsx edx, bl
movsx eax, byte [eax + ecx]
cmp eax, edx
sete bl
and bl, 1
movzx eax, bl
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x4c]
movsx eax, byte [eax + ecx]
mov ecx, dword [esp + 0xa0]
xor ecx, 0x36d8
cmp eax, ecx
je 0x402593
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
movsx eax, byte [ecx + eax]
mov ecx, dword [esp + 0xa0]
add ecx, 0xffffc928
cmp eax, ecx
je 0x402593
jmp 0x40285d
mov eax, dword [esp + 0x64]
add eax, 1
mov dword [esp + 0x64], eax
jmp 0x40262c
mov al, 0x9c
mov cl, byte [esp + 0x9b]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x7c], edx
cmp al, cl
ja 0x402833
jmp 0x4026e8
mov eax, dword [esp + 0x84]
mov cl, byte [esp + 0x27]
xor cl, 0xe6
mov byte [esp + 0xb3], cl
cmp eax, 0
je 0x402593
jmp 0x4025a6