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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0x6ade
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x76c8
mov word [esp + 0x86], 0xd6a
mov dword [esp + 0x80], 0x52d4
mov esi, dword [esp + 0x80]
sub edx, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x24], esi
call fcn.00418d20
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add eax, 0x18
add eax, 0x60
add eax, 8
mov bl, byte [esp + 0x9d]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x80]
xor eax, 0x52d4
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 4], eax
mov byte [esp + 0x23], bl
jbe 0x40465d
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
add eax, dword [ecx]
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x4c44
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
xor eax, 0x498a
or eax, ecx
mov dword [esp + 0x1c], eax
je 0x4043df
jmp 0x404363
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x5c]
add eax, 0xffffb992
mov dword [esp + 0x48], ecx
cmp edx, eax
jb 0x40438d
cmp dword [esp + 0x48], 0
je 0x404650
mov ax, word [esp + 0x9e]
mov ecx, dword [esp + 0x74]
xor ax, 0xffff
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x50]
mov word [esp + 0x9e], ax
add esi, dword [ecx + 0xc]
mov ecx, esp
mov dword [ecx], esi
call edx
sub esp, 4
mov dword [esp + 0x70], eax
mov di, word [esp + 0x9e]
imul di, word [esp + 0x9e]
mov eax, dword [esp + 0x70]
mov word [esp + 0x9e], di
cmp eax, 0
jne 0x4043e4
jmp 0x404650
mov ax, 0x545c
mov cx, 0x633a
mov dx, word [esp + 0x86]
sub cx, word [esp + 0x86]
mov esi, dword [esp + 0x74]
sub ax, dx
mov edi, dword [esp + 0x24]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x54], esi
mov word [esp + 0x62], cx
cmp word [esp + 0x62], ax
jb 0x4044ae
mov eax, dword [esp + 0x54]
cmp dword [eax], 0
je 0x40447f
mov eax, dword [esp + 0x74]
mov cx, word [esp + 0x9e]
imul cx, word [esp + 0x9e]
mov edx, dword [esp + 0x50]
mov word [esp + 0x9e], cx
add edx, dword [eax]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
xor edx, 0x1b5f
mov esi, dword [esp + 0x74]
mov dword [esp + 0xa0], edx
add eax, dword [esi + 0x10]
mov bl, byte [esp + 0x23]
mov byte [esp + 0x9d], bl
mov dword [esp + 0x4c], eax
jmp 0x4044ae
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
add eax, dword [ecx + 0x10]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x23]
mov dl, byte [esp + 0x23]
mul dl
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x9d], al
mov esi, dword [esp + 0x74]
add ecx, dword [esi + 0x10]
mov dword [esp + 0x4c], ecx
jmp 0x4044b0
mov eax, 0x52d4
mov cx, word [esp + 0x9e]
mov word [esp + 0x9e], cx
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x30]
cmp dword [edx], eax
je 0x404635
mov eax, 0x52d4
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xa0], 0xffff9f9d
sub eax, ecx
mov dword [esp + 0x3c], 0
mov word [esp + 0x9e], 0x1080
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
and ecx, 0x80000000
cmp ecx, eax
je 0x40454b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
and ecx, 0xffff
mov edx, dword [esp + 0x70]
mov esi, esp
mov dword [esi + 4], ecx
mov dword [esi], edx
call eax
sub esp, 8
lea ecx, [0x401223]
mov dword [esp + 0x3c], eax
mov dword [esp], ecx
call fcn.0041b060
mov dword [esp + 0x18], eax
jmp 0x4045af
lea eax, [0x401223]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
add ecx, 0xffffe7fe
adc edx, 0xffffffff
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esi, dword [edi]
mov dword [esp + 0x2c], esi
mov dword [esp], eax
call fcn.0041b060
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x70]
add edx, 2
mov edi, esp
mov dword [edi + 4], edx
mov dword [edi], esi
mov dword [esp + 0x14], eax
call ecx
sub esp, 8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x80]
add edx, 0xffffad2c
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov word [esp + 0x9e], 0xea7e
cmp eax, edx
jne 0x404606
lea eax, [0x401223]
mov ecx, 0x52d4
sub ecx, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
call fcn.0041b060
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc], eax
jmp 0x404635
mov ax, word [esp + 0x9e]
sub ax, 0x413e
mov word [esp + 0x9e], ax
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
add eax, 4
mov dword [esp + 0x4c], eax
jmp 0x4044b0
cmp dword [esp + 0x58], 0
jne 0x40463e
jmp 0x404650
jmp 0x404640
mov eax, dword [esp + 0x74]
add eax, 0x14
mov dword [esp + 0x74], eax
jmp 0x404336
mov al, byte [esp + 0x23]
and al, 0xdb
mov byte [esp + 0x9d], al
mov eax, esp
mov dword [eax], 0x401223
call fcn.0041b060
mov cl, byte [esp + 0x23]
mov byte [esp + 0x9d], cl
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0xdd6
xor edx, edx
mov ch, dl
test ch, ch
mov dword [esp + 8], eax
jne 0x404650
jmp 0x404693
mov eax, dword [esp + 0x58]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret