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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [ebp + 8]
mov ecx, 0x42f8
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0x7714
mov word [esp + 0x8e], 0x4a90
mov byte [esp + 0x8d], 0xee
mov dword [esp + 0x88], 0x46cb
mov dl, byte [esp + 0x8d]
mov dh, dl
add dh, 0xb7
mov byte [esp + 0x3b], dh
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
movzx ebx, word [esp + 0x8e]
mov dword [esp + 0x20], esi
mov si, bx
mov dword [esp + 0x1c], eax
mov eax, 0x55ab
sub eax, ebx
mov word [esp + 0x7e], ax
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], dl
mov word [esp + 0x10], si
call fcn.00402770
mov dword [esp + 0x70], eax
mov ecx, esp
mov dword [ecx], eax
call fcn.004026c0
sub esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x44]
mov dl, byte [esp + 0x13]
mov byte [esp + 0x95], dl
mov ecx, eax
add ecx, 0x18
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x90], edi
mov eax, dword [eax + 0x78]
add ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
add eax, 0xffffb934
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
and ecx, ecx
mov ebx, dword [esp + 0x18]
and ebx, ebx
mov esi, dword [esp + 0x70]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ecx
mov eax, dword [eax + 0x20]
add esi, eax
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x98], ebx
add ecx, dword [eax + 0x24]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x90], eax
mov dword [esp + 0xc], edi
jmp 0x40259c
mov eax, dword [esp + 0x88]
xor eax, 0x46ca
add eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
jmp 0x402640
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x88]
xor ecx, 0x46cb
cmp eax, ecx
je 0x4026b1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x88]
add ecx, 0xffffb935
cmp eax, ecx
je 0x4026b1
jmp 0x4024b7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x88]
xor ecx, 0xffffb934
cmp eax, ecx
je 0x402548
jmp 0x4025b5
mov ax, 0xc14
mov cx, word [esp + 0x8e]
mov dword [esp + 0x90], 0x52c9
mov dx, 0x9b2b
sub dx, cx
mov word [esp + 0x62], dx
mov esi, dword [esp + 0x20]
add esi, 0x5ad4
mov edi, dword [esp + 0x18]
adc edi, 0
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], esi
cmp ax, word [esp + 0x62]
jae 0x4025ef
jmp 0x4023e7
mov eax, dword [esp + 0x88]
xor eax, 0x46cb
mov ecx, dword [esp + 0x4c]
mov dx, word [esp + 0x10]
sub dx, dx
mov word [esp + 0x96], dx
cmp ecx, eax
jne 0x402530
jmp 0x40258c
jmp 0x4023ce
mov cx, word [esp + 0x10]
mov ax, cx
not eax
mov dx, ax
mov eax, dword [esp + 0x88]
xor eax, 0x46ca
mov word [esp + 0x96], dx
mov esi, dword [esp + 0x80]
add esi, eax
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
xor eax, 0xd46
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], eax
sub eax, 0x7ddf
sbb edi, 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
jb 0x40264c
jmp 0x40248e
mov eax, dword [esp + 0x6c]
movzx eax, word [eax]
mov dword [esp + 0x40], eax
jmp 0x40241e
mov ax, 0x67a
mov cx, word [esp + 0x7e]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x6c], edx
cmp ax, cx
jne 0x402520
jmp 0x40258c
mov dword [esp + 0x5c], 0
jmp 0x402632
mov ax, word [esp + 0x10]
xor ax, 0x4d77
mov ecx, dword [esp + 0x28]
mov word [esp + 0x96], ax
mov edx, dword [esp + 0x58]
movsx ecx, byte [edx + ecx]
mov bl, byte [esp + 0x8d]
xor bl, 0x85
mov bh, byte [esp + 0x3b]
mov dword [esp + 0x24], ecx
cmp bl, bh
jb 0x40243c
mov eax, dword [esp + 0x34]
add eax, 2
mov dword [esp + 0x34], eax
jmp 0x4024bc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
cmp ecx, dword [eax + 0x18]
jb 0x40265c
jmp 0x40241e
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
jmp 0x402632
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x58]
movsx ecx, dl
mov esi, dword [esp + 0x28]
movsx eax, byte [eax + esi]
cmp ecx, eax
sete dl
and dl, 1
movzx eax, dl
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
movsx eax, byte [ecx + eax]
cmp eax, 0
je 0x4026b1
jmp 0x402555
mov eax, dword [esp + 0x5c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp dword [esp + 0x28], 0x20
jb 0x4025ef
jmp 0x40248e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
jmp 0x40259c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [esp + 0x88]
xor esi, 0x46cb
mov edi, dword [esp + 0x70]
mov eax, dword [eax + ecx*4]
add edi, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], edx
xor eax, 0x46cb
mov dword [esp + 0x68], edi
mov bx, word [esp + 0x10]
mov word [esp + 0x96], bx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], esi
jmp 0x402640
jmp 0x40248e