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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 8]
mov word [esp + 0x76], 0x38dc
mov dword [esp + 0x70], 0x2cad
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x7a3
mov dword [esp + 0x68], eax
mov si, word [esp + 0x74]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov word [esp + 0x12], si
call fcn.004028e0
mov dword [esp + 0x34], eax
mov ecx, esp
mov dword [ecx], eax
call fcn.004026e0
sub esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x78], edx
mov dword [esp + 0x3c], eax
mov edi, eax
add edi, 0x18
xor ebx, ebx
mov ecx, 0x76
sub ecx, edx
mov edx, dword [esp + 0x18]
sbb ebx, edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x78]
mov edi, dword [esp + 0x84]
add ecx, eax
mov dword [esp + 0x54], ecx
mov al, byte [esp + 0x8b]
mov ah, al
or ah, ah
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x8b], ah
mov word [esp + 0x74], 0x7d1f
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x70]
add ecx, 0xffffd352
mov dword [esp + 0x2c], ecx
mov ah, al
and ah, 0xa4
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov byte [esp + 0x8b], ah
mov ecx, dword [ecx + 0x20]
add ebx, ecx
mov dword [esp + 0x64], ebx
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x24]
mov ebx, dword [esp + 0x14]
or ebx, 0x4ecf
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
add edx, ecx
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffa00d
mov dword [esp + 0x60], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x7c], esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x78], edx
add ecx, 0xffffd353
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edi
mov byte [esp + 0xb], al
jmp 0x402494
mov eax, dword [esp + 0x44]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
mov edx, 0x2cad
sub edx, ecx
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x78], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x7c], edi
movsx eax, byte [ecx + eax]
cmp eax, edx
je 0x4024d9
jmp 0x402564
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x18]
jae 0x402649
mov eax, 0xab2
mov ecx, dword [esp + 0x70]
add ecx, 0xd3
mov edx, dword [esp + 0x34]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + esi*4]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
cmp eax, edx
jne 0x402517
jmp 0x4024a5
jmp 0x402673
mov eax, 0x1d61
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, ecx
mov edx, dword [esp + 4]
mul edx
mov esi, dword [esp + 0x18]
imul edi, esi, 0x1d61
add edx, edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
movzx eax, word [edi]
mov dword [esp + 0x2c], eax
jmp 0x402649
mov eax, 0x2cad
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x78], 0xffffcd00
mov edx, dword [esp + 0x70]
mov si, word [esp + 0x12]
and si, 0x1efa
mov word [esp + 0x74], si
add ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x70]
sub eax, edx
xor edi, 0x2cad
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], eax
jmp 0x40262e
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
xor eax, 0x2cad
cmp ecx, eax
je 0x4024d9
jmp 0x402637
mov eax, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0xb]
add cl, 0x16
mov byte [esp + 0x8b], cl
jmp 0x40262e
mov ax, word [esp + 0x76]
xor ax, 0x5e27
mov cx, word [esp + 0x76]
mov dx, word [esp + 0x12]
add dx, 0x4e7a
mov word [esp + 0x74], dx
xor cx, 0x3845
mov word [esp + 0x5a], cx
cmp ax, word [esp + 0x5a]
jne 0x402680
jmp 0x402649
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x30], eax
jmp 0x402494
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dl, byte [ecx + eax]
mov dword [esp + 0x84], 0x5f60
mov eax, dword [esp + 0x24]
movsx ecx, dl
mov esi, dword [esp + 0x68]
movsx eax, byte [esi + eax]
cmp ecx, eax
sete dl
and dl, 1
movzx eax, dl
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
movsx eax, byte [eax + ecx]
cmp eax, 0
je 0x4024d9
jmp 0x402464
cmp dword [esp + 0x24], 0x20
jb 0x4025e0
jmp 0x402673
jmp 0x40257e
mov eax, dword [esp + 0x60]
add eax, 2
mov dword [esp + 0x60], eax
jmp 0x4025d0
mov eax, 0x2cac
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xc]
sub edx, 0x624f
mov esi, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x84], edx
cmp esi, eax
je 0x40259c
jmp 0x40268d
cmp dword [esp + 0x38], 0
jne 0x4024de
jmp 0x40263c
mov dword [esp + 0x44], 0
jmp 0x402456
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dl, byte [esp + 0xb]
and dl, dl
mov byte [esp + 0x8b], dl
add eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
jmp 0x402456