Function at 0x4109a0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562358
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ebx
cmp ecx, 0xffffffff
jne 0x4109ec
xor eax, eax
jmp 0x410c7c
mov eax, dword [ebx + 0x24]
mov edx, dword [eax]
test edx, edx
je 0x410a15
mov eax, dword [ebx + 0x34]
mov esi, dword [eax]
add esi, edx
cmp edx, esi
jae 0x410a15
dec dword [eax]
mov ebx, dword [ebx + 0x24]
mov eax, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx], edx
mov byte [eax], cl
mov eax, ecx
jmp 0x410c7c
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x410c79
cmp dword [ebx + 0x3c], 0
jne 0x410a44
push eax
movsx eax, cl
push eax
call fcn.0053e1de
add esp, 8
cmp eax, 0xffffffff
je 0x410c79
mov eax, dword [ebp + 8]
jmp 0x410c7c
mov byte [esp + 0x17], cl
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 8
cmp ecx, 0x10
jae 0x410a71
lea eax, [esp + 0x50]
mov byte [eax + 8], 0
mov dword [esp + 0x78], 0
jmp 0x410a82
mov ebx, edx
lea ecx, [esp + 0x2c]
push ecx
lea edi, [esp + 0x50]
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x410ac1
test eax, eax
jne 0x410aa2
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x410aaf
mov ecx, dword [eax + 4]
jmp 0x410ab2
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x410ac1
call fcn.0053d6a6
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x410b0f
test eax, eax
jne 0x410af0
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x410afd
mov ecx, dword [eax + 4]
jmp 0x410b00
lea ecx, [eax + 4]
mov eax, dword [eax + 0x14]
add eax, ecx
cmp dword [esi + 4], eax
jb 0x410b0f
call fcn.0053d6a6
mov edi, dword [esp + 0x24]
mov esi, dword [esi + 4]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
add eax, edi
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [ebx + 0x44]
push eax
call edx
test eax, eax
jl 0x410c70
cmp eax, 1
jg 0x410c2d
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x50]
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x410b90
test eax, eax
jne 0x410b71
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x410b7e
mov ecx, dword [eax + 4]
jmp 0x410b81
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x410b90
call fcn.0053d6a6
mov ebx, dword [esp + 0x20]
sub ebx, dword [esi + 4]
je 0x410bf3
lea eax, [esp + 0x3c]
push eax
lea edi, [esp + 0x50]
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x410bd8
test eax, eax
jne 0x410bb9
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x410bc6
mov ecx, dword [eax + 4]
jmp 0x410bc9
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x410bd8
call fcn.0053d6a6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x4c]
mov esi, dword [esi + 4]
push ecx
push ebx
push 1
push esi
call fcn.0053f2af
add esp, 0x10
cmp ebx, eax
jne 0x410c70
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x17]
mov byte [edx + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x410c62
test ebx, ebx
ja 0x410a80
cmp dword [esp + 0x60], 0x20
jae 0x410c70
push 0
mov eax, 8
lea edi, [esp + 0x50]
call fcn.00411850
mov ebx, dword [esp + 0x18]
jmp 0x410a82
cmp eax, 3
jne 0x410c70
mov eax, dword [ebx + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.00401c70
test al, al
je 0x410c52
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x4c]
call fcn.004231c0
mov eax, esi
jmp 0x410c7c
lea ecx, [esp + 0x4c]
or esi, 0xffffffff
call fcn.004231c0
mov eax, esi
jmp 0x410c7c
lea ecx, [esp + 0x4c]
call fcn.004231c0
mov eax, dword [ebp + 8]
jmp 0x410c7c
lea ecx, [esp + 0x4c]
call fcn.004231c0
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4