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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x100
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [0x44ab0c]
mov word [esp + 0x92], 0x4332
mov dword [esp + 0x5c], 0
mov edi, dword [esp + 0x5c]
mov dword [esp + 0xf8], 0
mov ebx, dword [esp + 0xf8]
mov byte [esp + 0x7f], 0
mov dword [esp + 0x4c], eax
mov al, byte [esp + 0x7f]
mov byte [esp + 0x6b], 0x15
mov dword [esp + 0xb0], 0
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x70], 9
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
and eax, 0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], 0x1000
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
mov byte [esp + 0xa3], 0x1d
mov dword [esp + 0xc4], 3
mov dword [esp + 0x58], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc4]
mov word [esp + 0x9a], 0
mov dword [esp + 0x34], eax
mov ax, word [esp + 0x9a]
mov byte [esp + 0xab], 0xa
mov word [esp + 0x52], 0x316a
mov word [esp + 0xca], 0x2f60
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xcc], esi
mov byte [esp + 0xf7], 0xcc
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x9c], 0
mov edx, dword [esp + 0x38]
cmp dword [esp + 0xac], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x2a], ax
jbe 0x4026ec
mov eax, 0
lea ecx, [esp + 0x8c]
lea edx, [esp + 0xab]
mov esi, 0xffffffff
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x6c]
sub edx, esi
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x6c]
and edx, ecx
mov dword [esp + 0x6c], edx
sub eax, dword [esp + 0x8c]
mov dword [esp + 0xbc], eax
jmp 0x402a45
lea eax, [esp + 0xf7]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc0], ecx
mov edx, dword [esp + 0x58]
sub eax, edx
mov dword [esp + 0xa4], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xbc], 0
cmp eax, ecx
jae 0x4027e4
lea eax, [esp + 0xa4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xb4]
movsx ecx, byte [edx + ecx]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x24], eax
mov eax, edx
xor edx, edx
mov esi, dword [esp + 0x40]
div esi
mov eax, dword [esp + 0xcc]
mov bl, byte [esp + 0xf7]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, edi
mov bh, al
xor bl, bh
mov byte [esp + 0xf7], bl
mov eax, dword [esp + 0x20]
movsx edx, byte [eax + edx]
sub ecx, edx
mov bl, cl
mov ecx, dword [esp + 0xc0]
mov byte [esp + ecx + 0xd0], bl
lea eax, [esp + 0xab]
mov ecx, dword [esp + 0xa4]
mov dx, word [esp + 0xca]
or dx, 0x6090
mov word [esp + 0xca], dx
mov esi, dword [esp + 0xc0]
sub eax, ecx
add esi, 1
mov dword [esp + 0xc0], esi
mov dword [esp + 0xa4], eax
jmp 0x402713
lea eax, [esp + 0xab]
mov ecx, 0
mov edx, dword [esp + 0x58]
mov si, word [esp + 0x52]
add si, 0x75c6
mov edi, dword [esp + 0xac]
sub ecx, edx
mov dword [esp + 0x58], ecx
mov word [esp + 0x52], si
mov bl, byte [esp + 0xf7]
mov bh, al
or bl, bh
mov byte [esp + 0xab], bl
mov eax, dword [esp + 0x44]
cmp edi, eax
jne 0x402874
lea eax, [0x44ab16]
lea ecx, [esp + 0x52]
mov edx, dword [esp + 0x58]
or edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp], eax
call fcn.004018c0
mov ecx, 0
sub ecx, dword [esp + 0x58]
mov si, word [esp + 0xca]
add si, 0xbaa
mov word [esp + 0xca], si
mov dword [esp + 0x94], eax
mov dword [esp + 0x58], ecx
jmp 0x402a45
mov al, 0
lea ecx, [esp + 0xd0]
mov edx, dword [esp + 0xac]
mov ah, byte [esp + 0x4b]
mov byte [esp + edx + 0xd0], ah
mov dword [esp + 0x84], ecx
sub al, byte [esp + 0xf7]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x58]
mov byte [esp + 0xf7], al
xor edx, 0
mov dword [esp + 0x58], edx
mov dword [esp], ecx
call fcn.004018c0
lea ecx, [0x44ab17]
mov si, ax
mov word [esp + 0x80], si
mov word [esp + 0x82], si
mov dword [esp], ecx
call fcn.004018c0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x402948
lea eax, [0x44ab1e]
lea ecx, [esp + 0xa4]
mov dl, byte [esp + 0xf7]
mov dh, cl
xor dl, dh
mov byte [esp + 0xf7], dl
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00401b40
mov dl, 0
mov dh, byte [esp + 0xab]
add dh, 0xd9
mov byte [esp + 0xab], dh
sub dl, byte [esp + 0x6b]
mov dword [esp + 0x94], eax
mov byte [esp + 0x6b], dl
jmp 0x402a45
call fcn.00402460
lea ecx, [0x44ab22]
mov dword [esp + 0xb8], eax
mov dl, byte [esp + 0x6b]
mov dword [esp], ecx
mov byte [esp + 0x1f], dl
call fcn.004018c0
mov dl, 0xf2
lea ecx, [esp + 0x6b]
mov dh, byte [esp + 0xf7]
mov bl, cl
mov bh, byte [esp + 0x1f]
sub dl, bh
and dh, bl
mov byte [esp + 0xf7], dh
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0xf0]
mov byte [esp + 0x6b], 0x3b
lea edi, [esp + 0x9c]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov di, word [esp + 0x2a]
movzx edi, di
mov dword [ebx + 8], edi
lea edi, [esp + 0x80]
mov dword [ebx + 4], edi
mov dword [ebx], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x17], dl
call ecx
sub esp, 0x10
mov dl, byte [esp + 0x17]
mov byte [esp + 0xa3], dl
mov ecx, dword [esp + 0x30]
cmp eax, ecx
je 0x4029f8
mov eax, dword [esp + 0x6c]
xor eax, 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x94], 0
jmp 0x402a45
lea eax, [0x44ab2a]
mov dword [esp], eax
call fcn.004018c0
lea ecx, [esp + 0xca]
mov edx, dword [esp + 0x9c]
mov bl, byte [esp + 0x6b]
xor bl, 0xa8
mov byte [esp + 0xf7], bl
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x64]
and esi, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0xa4], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa4], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8