Function at 0x415350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
lea esi, [edi + 0xa8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x4153ae
mov eax, 0x80004004
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00418a92
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x4153c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x4c], 0
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x68]
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0xc]
push edx
push 3
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x415776
lea ecx, [esp + 0x48]
call fcn.00403190
mov ax, word [esp + 0x68]
test ax, ax
jne 0x415408
lea eax, [edi + 0x50]
push eax
lea ecx, [esp + 0x4c]
call fcn.00403370
jmp 0x415425
cmp ax, 8
je 0x415418
mov ebx, 0x80004005
jmp 0x41576a
push dword [esp + 0x70]
lea ecx, [esp + 0x4c]
call fcn.00405140
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x1c]
call fcn.00403370
cmp dword [ebp + 0x14], 0
jne 0x41575e
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
push edx
push 9
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4156eb
mov ax, word [esp + 0x10]
test ax, ax
jne 0x41546c
mov eax, dword [edi + 0x64]
jmp 0x41547a
cmp ax, 0x13
jne 0x415524
mov eax, dword [esp + 0x18]
mov dword [edi + 0x44], eax
lea edx, [esp + 0x10]
mov eax, dword [edi + 0xc]
push edx
push 6
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4156eb
cmp word [esp + 0x18], ax
lea edx, [esp + 0x28]
push edx
setne al
mov byte [edi + 0x40], al
xor al, al
mov byte [esp + 0x13], al
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
push 0x15
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
je 0x4154dd
lea ecx, [esp + 0x28]
call fcn.00407110
lea ecx, [esp + 0x10]
call fcn.00407110
jmp 0x41576a
cmp word [esp + 0x28], 0xb
jne 0x4154f2
cmp word [esp + 0x30], 0
setne al
mov byte [esp + 0xf], al
lea ecx, [esp + 0x28]
call fcn.00407110
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x10]
push edx
push 0xc
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4156eb
movzx eax, word [esp + 0x10]
test eax, eax
je 0x415546
cmp eax, 0x40
je 0x415537
lea ecx, [esp + 0x10]
mov ebx, 0x80004005
call fcn.00407110
jmp 0x41576a
mov eax, dword [esp + 0x18]
lea esi, [edi + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
jmp 0x415551
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x38]
mov dword [esi], eax
mov eax, dword [edi + 0x60]
lea ecx, [esp + 0x54]
mov dword [esi + 4], eax
call fcn.00403000
lea edx, [esp + 0x54]
lea ecx, [esp + 0x48]
call fcn.00404a10
cmp dword [esp + 0x5c], 0
jne 0x41557b
mov ebx, 0x80004005
jmp 0x4156e2
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.004032c0
cmp byte [edi + 0x40], 0
jne 0x415598
lea ecx, [esp + 0x54]
call fcn.00403ca0
cmp dword [esp + 0x5c], 0
mov bl, byte [esp + 0xf]
je 0x4155b3
test bl, bl
jne 0x4155b3
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00415270
lea eax, [esp + 0x28]
push eax
lea edx, [edi + 0x10]
lea ecx, [esp + 0x40]
call fcn.00406460
cmp byte [edi + 0x40], 0
je 0x4155fb
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x28]
call fcn.00403370
test bl, bl
je 0x4155ea
mov ecx, dword [edi + 0x28]
call fcn.004055e0
xor ebx, ebx
jmp 0x4156ca
push esi
push ecx
mov ecx, dword [edi + 0x28]
call fcn.00405510
xor ebx, ebx
jmp 0x4156ca
lea ecx, [esp + 0xa0]
call fcn.00403190
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x78]
call fcn.00406980
test al, al
je 0x41563c
mov ecx, dword [esp + 0x3c]
call fcn.00405920
test al, al
jne 0x41563c
push str.Can_not_delete_output_file
lea ecx, [edi + 0xdc]
call fcn.00405140
mov ebx, 0x80004005
jmp 0x4156bb
test bl, bl
jne 0x415716
push 0x18
call fcn.00403e50
mov esi, eax
add esp, 4
test esi, esi
je 0x41566a
mov dword [esi + 4], 0
mov dword [esi], vtable.COutFileStream.0
mov dword [esi + 8], 0xffffffff
jmp 0x41566c
xor esi, esi
mov dword [edi + 0x48], esi
test esi, esi
je 0x415679
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x48]
mov eax, dword [esp + 0x3c]
push ecx
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
add ecx, 8
call fcn.00406e40
test al, al
jne 0x4156f6
push str.Can_not_open_output_file
lea ecx, [edi + 0xdc]
call fcn.00405140
mov ebx, 0x80004005
test esi, esi
je 0x4156bb
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [esp + 0xa0]
call fcn.00403e80
add esp, 4
push dword [esp + 0x3c]
call fcn.00403e80
add esp, 4
push dword [esp + 0x28]
call fcn.00403e80
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00403030
lea ecx, [esp + 0x10]
call fcn.00407110
jmp 0x41576a
test esi, esi
je 0x415700
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x41570d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x4c], esi
mov dword [eax], esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x28]
call fcn.00403370
push dword [esp + 0xa0]
call fcn.00403e80
add esp, 4
push dword [esp + 0x3c]
call fcn.00403e80
add esp, 4
push dword [esp + 0x28]
call fcn.00403e80
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00403030
lea ecx, [esp + 0x10]
call fcn.00407110
jmp 0x415768
mov eax, dword [esp + 0x24]
mov dword [eax], 0
xor ebx, ebx
push dword [esp + 0x48]
call fcn.00403e80
add esp, 4
lea ecx, [esp + 0x68]
call fcn.00407110
mov ecx, dword [esp + 0xb4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a92
mov esp, ebp
pop ebp
ret 0x10