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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [ebp + 0xc]
and eax, 0xffff0000
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x410961
push 0xff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x42216c]
test eax, eax
je 0x410961
xor eax, eax
jmp 0x410d35
push 0x40
mov edx, dword [ebp + 8]
push edx
call dword [0x42216c]
test eax, eax
je 0x410978
xor eax, eax
jmp 0x410d35
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x410995
xor eax, eax
jmp 0x410d35
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x42216c]
test eax, eax
je 0x4109b7
xor eax, eax
jmp 0x410d35
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4109d9
xor eax, eax
jmp 0x410d35
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4109ef
xor eax, eax
jmp 0x410d35
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0x128], 0
je 0x410a40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
jmp 0x410b6a
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x12c], 0
jmp 0x410a65
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ecx + 0x18]
jae 0x410b4f
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x124]
cmp dword [ecx + eax*4], 0
je 0x410b4a
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x134], ecx
push 0xff
mov edx, dword [ebp - 0x134]
push edx
call dword [0x42216c]
test eax, eax
jne 0x410b4a
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x134]
movsx ecx, byte [eax]
test ecx, ecx
je 0x410b17
cmp dword [ebp - 0x138], 0xff
jae 0x410b17
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
mov cl, byte [eax]
mov byte [ebp + edx - 0x120], cl
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x410ac9
mov ecx, dword [ebp - 0x138]
mov byte [ebp + ecx - 0x120], 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x120]
push eax
call 0x4182e0
add esp, 8
test eax, eax
jne 0x410b4a
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
jmp 0x410b4f
jmp 0x410a56
cmp dword [ebp - 0x130], 0
jl 0x410b6a
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jl 0x410b7b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x14]
jb 0x410b82
xor eax, eax
jmp 0x410d35
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x140], edx
push 0xff
mov eax, dword [ebp - 0x140]
push eax
call dword [0x42216c]
test eax, eax
jne 0x410d2f
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x24c], 0
mov ecx, dword [ebp - 0x140]
movsx edx, byte [ecx]
test edx, edx
je 0x410cb3
cmp dword [ebp - 0x24c], 0xff
jae 0x410cb3
mov eax, dword [ebp - 0x140]
movsx ecx, byte [eax]
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
sub edx, 0x22
mov dword [ebp - 0x258], edx
cmp dword [ebp - 0x258], 0x5a
ja case.0x410c3a.2
mov ecx, dword [ebp - 0x258]
xor eax, eax
mov al, byte [ecx + 0x410d45]
jmp dword [eax*4 + 0x410d39]
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x144], 1
jmp case.0x410c3a.2
mov dword [ebp - 0x144], 1
cmp dword [ebp - 0x144], 0
je 0x410c7b
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x410cb3
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x140]
mov dl, byte [ecx]
mov byte [ebp + eax - 0x248], dl
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x24c]
add ecx, 1
mov dword [ebp - 0x24c], ecx
jmp 0x410be4
mov edx, dword [ebp - 0x24c]
mov byte [ebp + edx - 0x248], 0
cmp dword [ebp - 0x148], 0
je 0x410d2f
lea eax, [ebp - 0x248]
push eax
call dword [0x42206c]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x410cf9
lea ecx, [ebp - 0x248]
push ecx
call dword [str.B8P]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x410d2f
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.00410922
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x410d2f
mov eax, dword [ebp - 0x254]
jmp 0x410d35
mov eax, dword [ebp - 0x13c]
mov esp, ebp
pop ebp
ret