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

Disassembly:
mov eax, 0x42c4
call fcn.004ea880
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x42c0], eax
mov eax, dword [esp + 0x42d0]
push ebx
push ebp
mov ebp, dword [esp + 0x42d0]
push esi
mov esi, dword [esp + 0x42d8]
push edi
push 0x1f4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], eax
xor ebx, ebx
xor edi, edi
call fcn.004ea6db
mov dword [esp + 0x30], eax
mov eax, ebp
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4bbaa3
sub eax, edx
sar eax, 1
movzx ecx, ax
push 0x615908
push esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], 0x4b5fc0
mov dword [esp + 0x2c], fcn.004b5fe0
mov dword [esp + 0x44], 0x4b5fc0
mov dword [esp + 0x48], fcn.004b5fe0
call fcn.004ef0af
add esp, 8
mov dword [esp + 0x58], eax
cmp eax, ebx
jne 0x4bbb06
call fcn.004eefa2
cmp dword [eax], ebx
je 0x4bbb06
mov eax, 1
jmp 0x4bbe5e
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0x4b60c0
mov dword [esp + 0x54], 0x4b6110
mov dword [esp + 0xac], 0x4b61c0
mov dword [esp + 0xb0], 0x4b6220
mov dword [esp + 0xb4], 0x4b6230
mov dword [esp + 0xb8], 0x4b6290
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], ebx
call fcn.004ba7c0
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.004bb400
add esp, 8
cmp eax, ebx
je 0x4bbbe9
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.004b6c30
jmp 0x4bbe30
xor ebp, ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x78], ebx
jbe 0x4bbe22
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4bbc26
mov edx, dword [esp + 0x78]
push edx
lea ecx, [ebp + 1]
push ecx
call eax
add esp, 8
mov eax, dword [esp + 0x9c]
mov esi, dword [eax + ebp*4 + 4]
sub esi, dword [eax + ebp*4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
cmp esi, dword [esp + 0x28]
jbe 0x4bbc6d
push edi
call fcn.004ea214
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x28], esi
cmp eax, ebx
je 0x4bbe77
push eax
call fcn.004ea6db
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4bbe22
push edi
lea edx, [esp + 0x60]
push ebp
push edx
call fcn.004b8330
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x19], bl
jne 0x4bbcc9
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebp
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004bb810
add esp, 0x28
test eax, eax
jne 0x4bbe22
mov esi, dword [esp + 0x2c]
push 0x1f4
push ebx
push esi
call fcn.004e9ba0
mov eax, dword [esp + 0x58]
mov edx, esi
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4bbce4
xor edx, edx
cmp word [edi], bx
je 0x4bbd28
movzx ecx, word [esp + 0x34]
mov eax, edi
lea ecx, [esi + ecx*2]
cmp word [eax], 0x2f
jne 0x4bbd16
mov esi, 0x5c
mov word [eax], si
mov esi, dword [esp + 0x2c]
mov ax, word [eax]
mov word [ecx], ax
inc edx
lea eax, [edi + edx*2]
add ecx, 2
cmp word [eax], bx
jne 0x4bbd04
push esi
call fcn.004a6000
mov ecx, dword [esp + 0x14]
add esp, 4
cmp byte [ecx + 0x19], bl
jne 0x4bbdf5
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.004ba750
add esp, 4
test eax, eax
je 0x4bbdb3
push 0x206
lea ecx, [esp + 0x40ce]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x40d4], ax
call fcn.004e9ba0
lea edx, [esp + 0x40d4]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4bbd80
lea edx, [esp + 0x40c8]
push edx
call fcn.004a6e40
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.004ba750
add esp, 8
test eax, eax
jne 0x4bbe7b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp eax, ebx
je 0x4bbddc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push esi
push eax
add ecx, edx
push 1
push ecx
call fcn.004eb848
add esp, 0x10
cmp eax, dword [esp + 0x1c]
jne 0x4bbe07
cmp esi, ebx
je 0x4bbdf5
push esi
call fcn.004ebb03
add esp, 4
cmp eax, ebx
jne 0x4bbe82
mov dword [esp + 0x14], ebx
add dword [esp + 0x10], 0x20
inc ebp
cmp ebp, dword [esp + 0x78]
jb 0x4bbc10
jmp 0x4bbe22
push esi
call fcn.004ef0fa
add esp, 4
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.004ef14f
add esp, 8
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.004b6c30
push edi
call fcn.004ea214
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, ebx
je 0x4bbe5c
push eax
call fcn.004ebb03
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x42d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x42c4
ret
xor edi, edi
jmp 0x4bbe22
push str.can_not_open_output_file
jmp 0x4bbe15
push str.can_not_close_output_file
jmp 0x4bbe15