Function at 0x435830
Capabilities:
Create directory
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov eax, 0x4560
call fcn.00455710
mov eax, dword [0x4b6170]
xor eax, esp
mov dword [esp + 0x455c], eax
mov eax, dword [esp + 0x4564]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
mov esi, edx
mov edi, ecx
lea edx, [esp + 0x415e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4164], cx
call fcn.00446600
add esp, 0xc
push 0x206
lea ecx, [esp + 0x4366]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x436c], ax
call fcn.00446600
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
mov ebp, 1
push ebp
push bind
push esi
mov dword [esp + 0x5c], 0x4362f0
mov dword [esp + 0x60], 0x436310
mov dword [esp + 0x78], 0x4362f0
mov dword [esp + 0x7c], 0x436310
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x4358fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4358fb
lea eax, [ebx + 0xb]
jmp 0x4360a1
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 0x436250
mov dword [esp + 0x68], 0x436280
mov dword [esp + 0xf0], 0x438e70
mov dword [esp + 0xf4], 0x438ed0
mov dword [esp + 0xf8], 0x438ee0
mov dword [esp + 0xfc], 0x438f40
mov dword [esp + 0x100], edx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebx
call fcn.00438f60
lea eax, [esp + 0x70]
call fcn.00436460
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x48]
call fcn.00438880
add esp, 8
cmp eax, ebx
je 0x435991
lea eax, [esp + 0x40]
lea ecx, [esp + 0x70]
call fcn.004364c0
jmp 0x43609f
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov ecx, 0x4af24c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4359c4
cmp dl, bl
je 0x4359c0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4359c4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4359a4
xor eax, eax
jmp 0x4359c9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4359d6
mov dword [esp + 0x2c], ebp
jmp 0x435a77
mov ecx, 0x4af250
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x435a00
cmp dl, bl
je 0x4359fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x435a00
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4359e0
xor eax, eax
jmp 0x435a05
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x435a0f
mov dword [esp + 0x3c], ebp
jmp 0x435a77
mov ecx, 0x4af064
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x435a36
cmp dl, bl
je 0x435a32
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x435a36
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x435a16
xor eax, eax
jmp 0x435a3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x435a77
mov ecx, 0x4ad424
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x435a66
cmp dl, bl
je 0x435a62
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x435a66
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x435a46
xor eax, eax
jmp 0x435a6b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x43609f
mov dword [esp + 0x30], ebp
xor ebp, ebp
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x20], ebp
cmp dword [esp + 0xb0], ebx
jbe 0x43608e
lea ebx, [ebx]
mov ecx, ebp
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0xb8]
mov eax, ebp
shr eax, 3
test byte [eax + ecx], dl
mov dword [esp + 0x38], eax
mov eax, ebx
setne al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x2c], ebx
jne 0x435ae8
cmp eax, ebx
je 0x435ae8
cmp dword [esp + 0x30], ebx
je 0x43605a
mov ecx, dword [esp + 0xe4]
mov esi, dword [ecx + ebp*4 + 4]
sub esi, dword [ecx + ebp*4]
lea eax, [ecx + ebp*4 + 4]
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x50]
jbe 0x435b39
mov edx, dword [esp + 0x14]
push edx
call fcn.00441d77
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x50], esi
cmp eax, ebx
je 0x43608e
push eax
call fcn.00441cad
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
cmp edi, ebx
je 0x43608e
jmp 0x435b3d
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ebp*4]
mov ecx, dword [ecx]
sub ecx, eax
cmp edi, ebx
je 0x435b74
mov edx, dword [esp + 0xe8]
lea edx, [edx + eax*2]
cmp ecx, ebx
jbe 0x435b74
mov eax, edi
sub edx, edi
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
sub ecx, 1
jne 0x435b65
cmp dword [esp + 0x2c], ebx
je 0x435ca2
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0x435ba2
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x38]
test byte [edx + eax], cl
je 0x435ba2
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + ebp*4]
jmp 0x435ba4
xor eax, eax
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x4134]
call fcn.004357d0
mov eax, dword [esp + 0xb8]
mov edx, dword [eax + ebp*8 + 8]
mov ecx, dword [eax + ebp*8 + 0xc]
add esp, 4
sub edx, dword [eax + ebp*8]
sbb ecx, dword [eax + ebp*8 + 4]
push ecx
push edx
lea ecx, [esp + 0x4140]
call fcn.00435480
mov eax, dword [esp + 0xd4]
add esp, 8
cmp eax, ebx
je 0x435c13
mov dl, byte [esp + 0x34]
mov ecx, dword [esp + 0x38]
test byte [ecx + eax], dl
je 0x435c13
mov edx, dword [esp + 0xd0]
lea eax, [edx + ebp*8]
push eax
lea edi, [esp + 0x4114]
call fcn.00435560
add esp, 4
jmp 0x435c4a
mov eax, 0x20202020
mov dword [esp + 0x4110], eax
mov dword [esp + 0x4114], eax
mov dword [esp + 0x4118], eax
mov dword [esp + 0x411c], eax
mov word [esp + 0x4120], ax
mov byte [esp + 0x4122], al
mov byte [esp + 0x4123], bl
lea ecx, [esp + 0x4138]
push ecx
lea edx, [esp + 0x4134]
push edx
lea eax, [esp + 0x4118]
push eax
push str._s__s__10s
call fcn.004463a9
mov eax, dword [esp + 0x24]
add esp, 0x10
call fcn.00435420
test eax, eax
jne 0x43608e
cmp dword [esp + 0x24], ebx
je 0x435c93
push 0x4af264
call fcn.004463a9
add esp, 4
push 0x4aeb90
call fcn.004463a9
jmp 0x436057
mov esi, str.Testing
cmp dword [esp + 0x3c], ebx
jne 0x435cb2
mov esi, str.Extracting
call fcn.004461f4
add eax, 0x20
push eax
push esi
call fcn.004460e5
add esp, 8
mov eax, edi
call fcn.00435420
test eax, eax
jne 0x43608e
cmp dword [esp + 0x24], ebx
je 0x435ce8
push 0x4af264
call fcn.004463a9
add esp, 4
jmp 0x435d2b
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x10c]
push ebp
push edx
lea eax, [esp + 0x94]
call fcn.00438c30
add esp, 0x24
test eax, eax
jne 0x43608e
cmp dword [esp + 0x3c], ebx
jne 0x436049
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x18], eax
cmp word [eax], bx
je 0x435ea9
mov edi, eax
lea ebx, [ebx]
cmp word [edi], 0x2f
jne 0x435e97
cmp dword [esp + 0x30], ebx
je 0x435e90
push 0x208
lea ecx, [esp + 0x415c]
xor eax, eax
push ebx
push ecx
mov word [edi], ax
call fcn.00446600
add esp, 0xc
push 0x208
lea edx, [esp + 0x4364]
push ebx
push edx
call fcn.00446600
mov esi, dword [esp + 0x54]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435da0
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x415c]
push esi
push ecx
call fcn.00444b20
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x435dd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435dd0
sub eax, edx
sar eax, 1
mov edx, 0x5c
mov word [esp + eax*2 + 0x4158], dx
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435df3
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x4158]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435e10
sub eax, esi
lea ecx, [edx + edx]
mov edx, dword [esp + 0x14]
push ecx
sar eax, 1
push edx
lea eax, [esp + eax*2 + 0x4160]
push eax
call fcn.00444b20
lea eax, [esp + 0x4164]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435e42
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x415c]
push edx
lea eax, [esp + 0x4368]
push eax
call fcn.00444b20
add esp, 0xc
push ebx
lea ecx, [esp + 0x4364]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435e86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5c
mov word [edi], dx
jmp 0x435e97
add edi, 2
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
inc ebp
cmp word [eax + ebp*2], bx
lea edi, [eax + ebp*2]
jne 0x435d50
push 0x208
lea ecx, [esp + 0x415c]
push ebx
push ecx
call fcn.00446600
mov esi, dword [esp + 0x54]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x435ed0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435ed0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x415c]
push esi
push eax
call fcn.00444b20
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435f00
sub eax, edx
sar eax, 1
mov ecx, 0x5c
mov word [esp + eax*2 + 0x4158], cx
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435f23
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x4158]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435f40
mov ecx, dword [esp + 0x18]
add edx, edx
sub eax, esi
push edx
sar eax, 1
push ecx
lea edx, [esp + eax*2 + 0x4160]
push edx
call fcn.00444b20
add esp, 0xc
push ebx
cmp dword [esp + 0x28], ebx
je 0x435f8f
lea eax, [esp + 0x415c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436049
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x436049
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x4170]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x435fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x43606e
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
add eax, edx
push ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebp
call fcn.00436140
add esp, 4
test eax, eax
jne 0x43607c
cmp dword [esp + 0x1c], ebp
jne 0x43607c
cmp esi, 0xffffffff
je 0x436014
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x436014
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x436075
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0x436049
mov dl, byte [esp + 0x34]
mov ecx, dword [esp + 0x38]
test byte [ecx + eax], dl
je 0x436049
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + eax*4]
push ecx
lea edx, [esp + 0x415c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4aeb90
call fcn.004463a9
mov ebp, dword [esp + 0x24]
add esp, 4
inc ebp
mov dword [esp + 0x20], ebp
cmp ebp, dword [esp + 0xb0]
jb 0x435aa0
jmp 0x43608e
push str.can_not_open_output_file
jmp 0x436081
push str.can_not_close_output_file
jmp 0x436081
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.004463a9
add esp, 8
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [esp + 0x4c]
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x456c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043f4b7
add esp, 0x4560
ret