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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x63a05f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x6bc858]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x18], edi
cmp ebx, 0xffffffff
jne 0x4c9944
xor eax, eax
jmp 0x4c9ccd
mov eax, dword [esi + 0x24]
cmp dword [eax], edi
je 0x4c996d
mov ecx, dword [eax]
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4c996d
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x4c9ccd
cmp dword [esi + 0x54], edi
je 0x4c9cca
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x48]
cmp dword [ecx], edx
jne 0x4c9994
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ecx], edx
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov edx, dword [esi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [esi + 0x44], edi
jne 0x4c99b9
mov esi, dword [esi + 0x54]
movsx eax, bl
push esi
push eax
call fcn.005fadb0
add esp, 8
cmp eax, 0xffffffff
je 0x4c9cca
mov eax, ebx
jmp 0x4c9ccd
push edi
push 8
lea ecx, [esp + 0x70]
mov byte [esp + 0x1c], bl
call fcn.004ca780
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x9c], edi
call fcn.00480720
mov edi, eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x9c], 1
call fcn.00480720
mov ebx, eax
mov ecx, edi
mov byte [esp + 0x98], 2
call fcn.004819d0
mov edi, eax
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.004819d0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea ebx, [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x20]
add ebx, edi
push ebx
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
push 3
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x9c], 1
call fcn.00564140
lea ecx, [esp + 0x38]
mov byte [esp + 0x98], 3
call fcn.00413660
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 1
call fcn.00564180
push 3
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.00564140
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], 4
call fcn.00413660
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call fcn.00564180
test edi, edi
js 0x4c9cb6
cmp edi, 1
jg 0x4c9cf0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x6c]
call fcn.00480720
mov ecx, eax
mov byte [esp + 0x98], 5
call fcn.004819d0
mov edi, dword [esp + 0x2c]
push 3
lea ecx, [esp + 0x34]
sub edi, eax
mov byte [esp + 0x9c], 0
call fcn.00564140
lea ecx, [esp + 0x50]
mov byte [esp + 0x98], 6
call fcn.00413660
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 0
call fcn.00564180
test edi, edi
je 0x4c9b55
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00480720
mov byte [esp + 0x98], 7
or dword [esp + 0x18], 1
mov ecx, eax
call fcn.004819d0
mov edx, dword [esi + 0x54]
push edx
push edi
push 1
push eax
call fcn.005f5d70
add esp, 0x10
cmp edi, eax
je 0x4c9b55
mov bl, 1
jmp 0x4c9b57
xor bl, bl
mov dword [esp + 0x98], 0
test byte [esp + 0x18], 1
je 0x4c9b9b
and dword [esp + 0x18], 0xfffffffe
push 3
lea ecx, [esp + 0x38]
call fcn.00564140
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 8
call fcn.00413660
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 0
call fcn.00564180
test bl, bl
jne 0x4c9cb6
lea eax, [esp + 0x14]
mov byte [esi + 0x49], 1
cmp dword [esp + 0x28], eax
jne 0x4c9d2a
test edi, edi
jne 0x4c9bd0
cmp dword [esp + 0x7c], 0x20
lea ecx, [esp + 0x68]
jae 0x4c9cba
push edi
push 8
call fcn.00460990
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00480720
mov edi, eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x9c], 1
call fcn.00480720
mov ebx, eax
mov ecx, edi
mov byte [esp + 0x98], 2
call fcn.004819d0
mov edi, eax
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.004819d0
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea ebx, [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x20]
add ebx, edi
push ebx
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
push 3
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x9c], 1
call fcn.00564140
lea ecx, [esp + 0x38]
mov byte [esp + 0x98], 3
call fcn.00413660
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 1
call fcn.00564180
push 3
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.00564140
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], 4
call fcn.00413660
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call fcn.00564180
test edi, edi
jns 0x4c9ab6
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.00412410
or eax, 0xffffffff
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret 4
cmp edi, 3
jne 0x4c9cb6
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004c50c0
add esp, 8
test al, al
je 0x4c9d0f
mov esi, dword [ebp + 8]
jmp 0x4c9d12
or esi, 0xffffffff
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.00412410
mov eax, esi
jmp 0x4c9ccd
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0xffffffff
call fcn.00412410
mov eax, dword [ebp + 8]
jmp 0x4c9ccd