Function at 0x430ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jne 0x430afe
test edi, edi
je 0x430afe
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
push edi
call ecx
mov ebx, eax
movzx eax, byte [esi + 0x40]
add eax, 0xffffffec
cmp eax, 4
ja case.default.0x430b0e
jmp dword [eax*4 + 0x431058]
mov dword [esi + 0x44], 0
test ebx, ebx
jne 0x430b2a
mov eax, 0x80040344
jmp 0x431041
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov dword [esi + 0x44], ebx
call edx
cmp byte [ebp - 5], 0xff
lea ebx, [ebp - 0xc]
jne 0x430b46
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
push edi
call ecx
mov edi, edi
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x430b70
test cl, cl
je 0x430b6c
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x430b70
add eax, 2
add ebx, 2
test cl, cl
jne 0x430b50
xor eax, eax
jmp 0x430b75
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
cmp eax, ebx
je 0x430b9f
lea ecx, [ebp - 0xc]
mov byte [esi + 0x40], 5
call fcn.0042f1e0
pop edi
pop esi
mov eax, 0x80040344
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push edi
call eax
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.0042ef90
mov eax, dword [edi + eax]
push eax
call fcn.0043a920
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, 0x64
jb 0x430b7b
cmp eax, 0xbb8
ja 0x430b7b
lea ecx, [ebp - 0xc]
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov byte [esi + 0x40], 0x15
call fcn.0042f1e0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x430b20
mov eax, dword [esi + 0x38]
add dword [esi + 0x44], ebx
test eax, eax
je 0x430c20
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [edx + 0xc]
push 1
call eax
mov dword [esi + 0x38], 0
push 0x15c
call fcn.0044fff4
add esp, 4
test eax, eax
je 0x430c3a
mov ecx, eax
call fcn.00435130
jmp 0x430c3c
xor eax, eax
mov dword [esi + 0x38], eax
test eax, eax
jne 0x430c4d
mov eax, 0x8007000e
jmp 0x431041
lea ecx, [ebp - 0x2c]
call fcn.004309d0
mov ecx, dword [esi + 0x38]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push ecx
push ebx
push edi
call eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.00439c50
cmp eax, 1
jne 0x430b20
cmp dword [esi + 0xa8], 0
jne 0x430c99
mov ecx, dword [esi + 0x38]
add ecx, 0x14
call fcn.004360c0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x430c99
mov eax, 0x80040341
jmp 0x431041
lea edi, [esi + 0x48]
push edi
call fcn.00436280
mov ecx, dword [esi + 0x38]
add esp, 4
push edi
call fcn.00434f80
cmp dword [esi + 0xa8], 1
mov eax, dword [ebp + 0xc]
sete cl
pop edi
mov dword [esi + 0x18], 0x200
lea ecx, [ecx + ecx + 0x16]
mov byte [esi + 0x40], cl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jbe 0x430e6c
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push ebx
push edi
call eax
push eax
lea ecx, [esi + 0x48]
push ecx
call fcn.004372c0
add esp, 0xc
cmp dword [esi + 0x12c], 0
jne 0x430e4b
mov ebx, 1
mov dword [esi + 0x12c], ebx
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 4
push edi
call eax
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0044f7c0
add esp, 0xc
mov byte [ebp - 8], 0
mov ecx, str..rzt
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x430d55
test dl, dl
je 0x430d51
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x430d55
add eax, 2
add ecx, 2
test dl, dl
jne 0x430d35
xor eax, eax
jmp 0x430d5a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x430d85
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x128], ebx
mov byte [esi + 0x40], 0x16
mov dword [esi + 0x18], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, str..rxt
lea eax, [ebp - 0xc]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x430db0
test dl, dl
je 0x430dac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x430db0
add eax, 2
add ecx, 2
test dl, dl
jne 0x430d90
xor eax, eax
jmp 0x430db5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x430de4
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x128], 2
mov byte [esi + 0x40], 0x16
mov dword [esi + 0x18], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, str..rfx
lea eax, [ebp - 0xc]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x430e10
test dl, dl
je 0x430e0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x430e10
add eax, 2
add ecx, 2
test dl, dl
jne 0x430df0
xor eax, eax
jmp 0x430e15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x430e44
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x128], 3
mov byte [esi + 0x40], 0x16
mov dword [esi + 0x18], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi + 0x40], 5
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0xc]
pop edi
mov byte [esi + 0x40], 0x16
mov dword [esi + 0x18], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [esi + 0x48]
push eax
call fcn.004373b0
add esp, 8
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.00435230
mov dword [ebp + 0xc], eax
test eax, eax
je 0x430ead
pop edi
mov byte [esi + 0x40], 5
mov dword [esi + 0xc], 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.00430870
mov edx, dword [esi + 0x24]
mov dword [esi + 0x3c], eax
mov dword [eax + 0x24], edx
mov eax, dword [esi + 0x10]
push 0
test eax, eax
je 0x430ee9
mov edx, dword [esi + 0x44]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x2c]
jmp 0x430f0e
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 8]
push ecx
push edx
call fcn.00454472
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
add esp, 0xc
push edx
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 8]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x430fc6
jmp 0x430f45
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp + 0xc], eax
cmp eax, 0x80040081
jne 0x430f3d
mov dword [ebp + 0xc], 0x80040344
jmp 0x430f45
test eax, eax
jl 0x431041
mov eax, dword [esi + 0x3c]
mov byte [esi + 0x40], 0x17
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push esi
push eax
call edx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x124], 0
jne 0x430fe0
lea eax, [esi + 0xac]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430f80
sub eax, edx
je 0x430fc6
lea eax, [esi + 0xac]
push 0x476474
push eax
call fcn.00450908
add esp, 8
mov dword [esi + 0x124], eax
test eax, eax
jne 0x430fe0
lea eax, [esi + 0xac]
push eax
push str.Cant_open_rzt_file__s_n
call fcn.0045509a
add eax, 0x40
push eax
call fcn.00450728
add esp, 0xc
mov eax, dword [ebp + 0xc]
pop edi
mov byte [esi + 0x40], 5
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jbe 0x430fff
mov eax, dword [esi + 0x124]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push eax
push ebx
push 1
push edi
call edx
push eax
call fcn.00454139
add esp, 0x10
cmp dword [esi + 0x18], ebx
jbe 0x43101d
mov eax, dword [esi + 0x124]
push eax
call fcn.004506ac
add esp, 4
cmp dword [esi + 0x18], ebx
mov dword [ebp + 0xc], 0
je 0x431026
mov dword [esi + 0xc], 1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x40], 5
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret 0xc