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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [ebp + 8]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x597c
mov word [esp + 0xee], 0x286
mov byte [esp + 0xed], 0x18
mov dword [esp + 0xe8], 0x66e
movzx ecx, word [esp + 0xee]
mov dx, cx
add ecx, 0x3d8f
mov si, cx
mov word [esp + 0x80], si
mov ecx, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
mov ebx, ecx
add ebx, 0xffffbd9d
mov esi, edi
adc esi, 0xffffffff
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0xe8]
mov ebx, esi
add ebx, 0x6cb6
mov dword [esp + 0xd0], ebx
cmp dword [esp + 0xd0], 0xb7a
mov dword [esp + 0x34], eax
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
jae 0x4027f9
jmp 0x4028a0
jmp 0x402781
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x8c], eax
jmp 0x402aee
mov eax, 0x66e
mov ecx, dword [esp + 0xc8]
sub eax, dword [esp + 0xe8]
cmp ecx, eax
jne 0x402959
jmp 0x402692
jmp 0x4026ff
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xa4]
xor eax, 0x66e
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x108], esi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10c], edi
mov ebx, dword [esp + 0x3c]
movsx ecx, byte [ecx + edx]
cmp ebx, ecx
sete cl
and cl, 1
movzx edx, cl
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xd4]
mov ebx, dword [esp + 0x88]
movsx edx, byte [ebx + edx]
cmp edx, eax
je 0x402523
jmp 0x4029b4
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
xor edx, 0x2536
sub eax, edx
sbb ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jb 0x4028a0
jmp 0x40293b
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa0], eax
call fcn.00402bf0
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xbc]
mov ecx, esp
mov dword [ecx], eax
call fcn.00402b00
sub esp, 4
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb0]
add eax, 0x18
mov ecx, dword [esp + 0x24]
add ecx, 0x7f4c
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
add eax, dword [ecx + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x70], eax
mov dword [esp + 0xdc], 0xffffffff
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xbc]
add ecx, dword [eax + 0x20]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0xbc]
add ecx, eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x44], 0
jmp 0x4028c3
mov al, byte [esp + 0xed]
xor al, 0xc9
cmp al, byte [esp + 0x83]
jbe 0x4025c0
jmp 0x402781
mov eax, dword [esp + 0xd8]
mov cx, word [esp + 0xee]
xor cx, 0x3fb
mov dx, word [esp + 0xee]
xor dx, 0x48bf
mov word [esp + 0xe6], cx
add eax, 2
mov cx, word [esp + 0xe6]
mov si, word [esp + 0x32]
or si, 0x69a6
mov word [esp + 0xf6], si
mov dword [esp + 0x84], eax
mov si, word [esp + 0x32]
xor si, 0x2eff
mov word [esp + 0xf6], si
cmp dx, cx
ja 0x4028b0
jmp 0x4028df
mov ax, word [esp + 0xee]
xor ax, 0x2b0a
mov ecx, dword [esp + 0x7c]
mov dx, word [esp + 0x80]
mov dword [esp + 0xc8], ecx
cmp ax, dx
jne 0x402503
mov al, 0xdb
mov cl, byte [esp + 0x5b]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0xd4]
movsx edx, byte [edx + esi]
mov dword [esp + 0x3c], edx
sub al, byte [esp + 0xed]
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x24]
add edx, 0x1864
mov dword [esp + 0xf0], edx
cmp cl, al
jbe 0x402523
jmp 0x402528
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
xor edx, edx
mov esi, 0x5ff0
sub esi, eax
sbb edx, ecx
mov eax, dword [esp + 0xd4]
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub eax, esi
sbb ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jae 0x4029f7
jmp 0x402959
mov al, byte [esp + 0xed]
add al, 0x14
mov ecx, dword [esp + 0x28]
not ecx
mov edx, dword [esp + 0x2c]
not edx
mov ah, byte [esp + 0x6f]
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], ecx
cmp al, ah
jb 0x402ad0
jmp 0x4024eb
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
xor eax, 0x343c
mov dl, byte [esp + 0xed]
xor dl, 0xfe
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov byte [esp + 0x5b], dl
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0x48ed
mov dl, byte [esp + 0xed]
mov dh, 0x93
sub dh, dl
add dl, 0xd3
mov eax, dword [esp + 0xe8]
xor eax, 0x67f4
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x2ffa
mov byte [esp + 0x6f], dh
mov dword [esp + 0x9c], eax
mov byte [esp + 0xcf], dl
mov dl, byte [esp + 0xcf]
mov eax, dword [esp + 0xe8]
add eax, 0x6272
mov byte [esp + 0x83], dl
cmp eax, dword [esp + 0x9c]
jne 0x402677
jmp 0x4026ff
mov eax, dword [esp + 0x38]
mov dword [esp + 0xdc], eax
jmp 0x4027c5
mov eax, dword [esp + 0x84]
mov dword [esp + 0xd8], eax
jmp 0x402a9f
mov eax, dword [esp + 0x44]
mov dword [esp + 0xf0], 0x1fbd
mov ecx, dword [esp + 0x78]
cmp eax, dword [ecx + 0x18]
jae 0x4027c5
mov eax, 0x66e
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0x44]
sub eax, dword [esp + 0xe8]
mov ecx, dword [ecx + esi*4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0xf0], esi
mov edi, dword [esp + 0xe8]
xor edi, 0x66e
add edx, ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0xd4], edi
jmp 0x40293b
mov dword [esp + 0x8c], 0
jmp 0x402aee
mov eax, dword [esp + 0xe8]
add eax, 0xfffff9b2
cmp dword [esp + 0xd4], eax
jb 0x402727
jmp 0x4026ff
mov eax, dword [esp + 0xd8]
movzx eax, word [eax]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
xor esi, esi
mov edi, 0x641a
sub edi, ecx
sbb esi, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0xc0], xmm0
xor edi, 0x43a
or edi, esi
mov dword [esp + 0x10], edi
je 0x402a9f
jmp 0x402587
mov eax, 0x66e
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xd4]
mov esi, dword [esp + 0xa0]
movsx edx, byte [esi + edx]
sub eax, ecx
cmp edx, eax
je 0x402523
mov eax, dword [esp + 0xe8]
xor eax, 0x66e
cmp dword [esp + 0x7c], eax
je 0x402523
jmp 0x4024eb
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd4], eax
jmp 0x40293b
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
add edx, 0x7236
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
add esi, 0xffffc9e6
adc edi, 0xffffffff
mov dword [esp + 0xf0], edx
mov ecx, dword [ecx + 0x1c]
add eax, ecx
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0xdc]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xbc]
add ebx, eax
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0xb8], ebx
sub esi, ecx
sbb edi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
jb 0x4028a0
jmp 0x4024f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xe8]
add ecx, 0xfffff993
add eax, ecx
mov dword [esp + 0x44], eax
mov dl, byte [esp + 0x107]
or dl, byte [esp + 0x107]
mov byte [esp + 0x107], dl
jmp 0x4028c3
mov eax, dword [esp + 0xe8]
add eax, 0xfffff991
cmp dword [esp + 0xdc], eax
je 0x40292b
jmp 0x402a07
mov eax, dword [esp + 0x8c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4