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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
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
je 0x410dd2
mov eax, dword [ebp + 0xc]
and eax, 0xffff
jmp 0x411016
cmp dword [ebp - 0x128], 0
jne 0x410df5
push 0xff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x42216c]
test eax, eax
je 0x410df5
xor eax, eax
jmp 0x411016
push 0x40
mov edx, dword [ebp + 8]
push edx
call dword [0x42216c]
test eax, eax
je 0x410e0c
xor eax, eax
jmp 0x411016
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 0x410e29
xor eax, eax
jmp 0x411016
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 0x410e4b
xor eax, eax
jmp 0x411016
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 0x410e6d
xor eax, eax
jmp 0x411016
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x410e83
xor eax, eax
jmp 0x411016
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 0x410ed4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
jmp 0x410ffe
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x12c], 0
jmp 0x410ef9
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 0x410fe3
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x124]
cmp dword [ecx + eax*4], 0
je 0x410fde
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 0x410fde
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x134]
movsx ecx, byte [eax]
test ecx, ecx
je 0x410fab
cmp dword [ebp - 0x138], 0xff
jae 0x410fab
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 0x410f5d
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 0x410fde
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
jmp 0x410fe3
jmp 0x410eea
cmp dword [ebp - 0x130], 0
jl 0x410ffe
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 0x41100f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x14]
jb 0x411013
xor eax, eax
jmp 0x411016
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret