Function at 0x4bc8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
test edx, edx
sete dl
test ecx, ecx
sete al
or eax, edx
or edx, 0xffffffff
test al, 1
jne 0x4bcb75
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov edx, eax
mov dword [ebp - 0x70], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x58], 0
mov eax, dword [eax]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 0x14]
xor ebx, ebx
lea esi, [ebp - 0x78]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x34], 0
test eax, eax
jle 0x4bccda
shl eax, 2
sub esp, 0xc
push eax
call dword [0x69a2cc]
add esp, 0x10
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x4bce24
mov edx, dword [ebp + 8]
mov edi, eax
cld
mov ecx, dword [edx + 0x14]
mov eax, ebx
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [esi]
test eax, eax
jne 0x4bcae8
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4bcae8
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
cmp byte [edx + eax], 0
je 0x4bcc83
mov dword [ebp - 0x7c], 1
cmp byte [edx + eax], 0
jne 0x4bcb80
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4bcb80
mov ebx, dword [esi + 0x18]
cmp ebx, dword [ecx + 0x18]
jge 0x4bcad0
mov eax, dword [ecx + 0x1c]
lea edx, [ebx + ebx*4]
lea edi, [eax + edx*4]
mov eax, dword [edi + 4]
test eax, eax
js 0x4bca22
mov edi, dword [edi]
mov dword [ebp - 0x84], edi
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4bcad0
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x4bcad0
mov dword [esi + 0x1c], 0
mov edx, ebx
cmp ebx, dword [ecx + 0x18]
jge 0x4bcaba
mov eax, dword [ecx + 0x1c]
lea edx, [edx + edx*4]
lea edi, [eax + edx*4]
mov eax, dword [edi + 4]
test eax, eax
js 0x4bcaa6
mov edx, dword [edi]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x84], edx
mov edx, dword [edi + 0xc]
test edx, edx
js 0x4bcb88
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4bce38
mov ecx, dword [eax + edx*4]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
lea eax, [eax + edx*8]
mov edx, dword [eax]
cmp edx, ecx
jg 0x4bcaa3
mov eax, dword [eax + 4]
cmp eax, ecx
jl 0x4bcaa3
mov ebx, 1
cmp edx, eax
je 0x4bca92
mov dword [ebp - 0x80], 0
cmp ebx, 1
je 0x4bcbcf
test ebx, ebx
js 0x4bce92
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov edx, eax
cmp eax, dword [ecx + 0x18]
jl 0x4bca34
mov ebx, eax
test ebx, ebx
jne 0x4bcad0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4bc9a7
lea esi, [esi]
mov dword [esi + 4], 0
mov eax, esi
call fcn.004b9f10
mov eax, dword [esi]
test eax, eax
je 0x4bc9b1
mov edx, dword [esi + 0x28]
test edx, edx
je 0x4bcb3c
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4bcb2c
mov ecx, dword [esi + 0x20]
xor ebx, ebx
cmp ecx, 0
jg 0x4bcb0a
jmp 0x4bcb2c
inc ebx
cmp ecx, ebx
jle 0x4bcb2c
mov edx, dword [esi + 0x28]
mov eax, ebx
shl eax, 4
mov eax, dword [eax + edx + 0xc]
test eax, eax
je 0x4bcb02
sub esp, 0xc
inc ebx
push eax
call dword [0x69a2d0]
mov ecx, dword [esi + 0x20]
add esp, 0x10
cmp ecx, ebx
jg 0x4bcb07
sub esp, 0xc
mov eax, dword [esi + 0x28]
push eax
call dword [0x69a2d0]
add esp, 0x10
mov edi, dword [esi + 0x14]
or eax, 0xffffffff
test edi, edi
je 0x4bcb73
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4bce43
mov edx, dword [esi]
mov eax, 1
test edx, edx
je 0x4bcb73
mov eax, edx
cmp edx, 0xffffffff
jne 0x4bcb73
cmp dword [esi + 0x58], 0x989680
setle al
and eax, 0xff
dec eax
mov edx, eax
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esi + 0x18]
jmp 0x4bca22
mov ebx, dword [ebp - 0x84]
test ebx, ebx
je 0x4bceac
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
cmp byte [edx + eax], 0
jne 0x4bcc91
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4bcaa3
cmp dword [ecx + 0x10], 0
jle 0x4bcaa3
mov dword [esi + 0x1c], 1
mov dword [ebp - 0x7c], 0
cmp dword [edi + 0x10], 1
je 0x4bcbf6
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x80]
xor eax, 0xffffffff
shr eax, 0x1f
test ebx, ebx
sete dl
test edx, eax
je 0x4bcbfd
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
inc eax
cmp dword [ecx + 0x18], eax
jle 0x4bcbfd
mov eax, esi
call fcn.004b9d80
mov ecx, dword [edi + 8]
test ecx, ecx
js 0x4bcc36
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x4bce38
mov eax, dword [esi + 8]
test eax, eax
je 0x4bce38
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4bce38
mov eax, dword [ebx + ecx*4]
cmp eax, dword [edx + ecx*8 + 4]
jge 0x4bcaa3
inc eax
mov dword [ebx + ecx*4], eax
mov edx, dword [edi + 0xc]
cmp edx, 0x123455
ja 0x4bcc53
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4bce38
mov dword [eax + edx*4], 0
mov ebx, dword [ebp + 8]
mov edx, dword [edi + 4]
mov dword [esi + 0x18], 0
mov eax, dword [ebx + 8]
mov ecx, dword [eax + edx*4]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x4bc9a7
mov eax, dword [ebp - 0x7c]
mov edx, dword [esi + 0x38]
add edx, eax
mov dword [esi + 0x38], edx
jmp 0x4bc9a7
cmp dword [ecx], 2
jne 0x4bc9cc
jmp 0x4bcae8
add eax, edx
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0
call fcn.00454260
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x84]
call fcn.004b9170
mov ebx, eax
cmp eax, 1
je 0x4bcce6
test eax, eax
jne 0x4bca92
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x4bcaa3
mov eax, dword [edx + 0x10]
test eax, eax
jmp 0x4bcbbb
mov dword [ebp - 0x4c], 0
jmp 0x4bc9a7
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0xc]
test edx, edx
js 0x4bcbcf
mov eax, dword [eax + 0x10]
test eax, eax
jle 0x4bcbcf
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
mov eax, dword [ecx + 8]
mov ecx, dword [edi + 8]
test ecx, ecx
mov edx, dword [eax + edx*4]
mov dword [ebp - 0x88], edx
js 0x4bcd65
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x4bce38
mov eax, dword [esi + 8]
test eax, eax
je 0x4bce38
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4bce38
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x9c], eax
cmp eax, dword [edx + ecx*8 + 4]
jge 0x4bcaa3
mov edx, dword [ebp - 0x8c]
inc eax
mov dword [edx + ecx*4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
inc eax
cmp dword [ecx + 0x18], eax
jg 0x4bcea0
mov dword [esi + 0x1c], 1
jmp 0x4bcdaf
add eax, edx
push ebx
lea ebx, [ebp - 0x7c]
push ebx
push eax
push 0
call fcn.00454260
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x84]
call fcn.004b9170
mov ebx, eax
mov eax, dword [esi + 0x1c]
inc eax
cmp ebx, 1
mov dword [esi + 0x1c], eax
jne 0x4bce55
mov eax, dword [ebp - 0x84]
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [eax + 0x10]
je 0x4bce57
mov edx, dword [ebp - 0x7c]
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x90], edx
add edx, eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x38], edx
cmp byte [edx + eax], 0
je 0x4bced4
mov ebx, dword [ebp - 0x84]
cmp ecx, dword [ebx + 0xc]
jl 0x4bcd7e
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x88]
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x94], eax
mov dword [esi + 0x14], edx
mov eax, esi
mov dword [esi + 0x18], 0xffffffff
call fcn.004b9d80
mov ecx, dword [ebp - 0x94]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ecx
jmp 0x4bcd7e
mov edx, str.running_regexp
call fcn.004b7220
or eax, 0xffffffff
mov edx, eax
jmp 0x4bcb75
mov dword [esi], 0xffffffff
jmp 0x4bcae8
sub esp, 0xc
push eax
call dword [0x69a2d0]
add esp, 0x10
jmp 0x4bcb51
mov ecx, eax
mov eax, dword [ebp - 0x84]
cmp ecx, dword [eax + 0xc]
jl 0x4bcad0
test ebx, ebx
jl 0x4bcad0
je 0x4bcad0
mov edx, dword [edi + 8]
test edx, edx
js 0x4bca92
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4bce38
mov ecx, dword [eax + edx*4]
dec ecx
mov dword [eax + edx*4], ecx
jmp 0x4bca92
mov ebx, dword [esi + 0x18]
mov dword [esi], 0xfffffffc
jmp 0x4bcaba
mov eax, esi
call fcn.004b9d80
jmp 0x4bcd75
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x23
push 1
push str.epsilon_transition_left_at_runtime_n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ebx, dword [esi + 0x18]
mov dword [esi], 0xfffffffe
jmp 0x4bcaba
mov eax, dword [ebp - 0x90]
sub edx, eax
mov dword [esi + 0x38], edx
jmp 0x4bce57