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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0xd8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0xf0]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x419b0e
mov eax, 0x80004004
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x50]
xor ebx, ebx
cmp eax, ebx
je 0x419b22
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x50], ebx
xor ecx, ecx
mov word [esp + 0x32], cx
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
mov word [esp + 0x34], ax
mov eax, dword [edi + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 3
push ecx
push eax
call edx
mov esi, eax
cmp esi, ebx
je 0x419b60
lea ecx, [esp + 0x30]
call fcn.0040dc40
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ebx, 4
lea esi, [esp + 0x14]
call fcn.00403070
mov ax, word [esp + 0x30]
test ax, ax
jne 0x419b93
add edi, 0x54
mov eax, esi
call fcn.0040bcb0
mov edi, dword [ebp + 8]
jmp 0x419ba7
cmp ax, 8
jne 0x419c0f
mov ecx, dword [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
call fcn.0040ce10
lea eax, [edi + 0x20]
lea edi, [esp + 0x14]
call fcn.0040bcb0
cmp dword [ebp + 0x14], 0
jne 0x41a025
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov word [esp + 0x20], dx
xor eax, eax
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x26], ax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push 9
push edi
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
test ebx, ebx
jne 0x419ca4
mov ax, word [esp + 0x20]
test ax, ax
jne 0x419c00
mov edx, dword [esi + 0x68]
mov dword [esi + 0x48], edx
jmp 0x419c3a
cmp ax, 0x13
je 0x419c33
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov eax, dword [esp + 0x14]
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040dc40
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x48], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 6
push edi
push eax
call edx
mov ebx, eax
test ebx, ebx
je 0x419c63
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov eax, dword [esp + 0x14]
push eax
jmp 0x419cb2
cmp word [esp + 0x28], 0
mov byte [esp + 0x13], 0
setne cl
xor edx, edx
mov word [esp + 0x50], dx
xor eax, eax
lea edx, [esp + 0x50]
push edx
mov word [esp + 0x56], ax
mov eax, dword [esi + 0x10]
push 0x15
mov byte [esi + 0x44], cl
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
test ebx, ebx
je 0x419cce
lea ecx, [esp + 0x50]
call fcn.0040dc40
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040dc40
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [esp + 0x50], 0xb
jne 0x419ce1
cmp word [esp + 0x58], 0
setne byte [esp + 0x13]
lea ecx, [esp + 0x50]
call fcn.0040dc40
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0xc
push edi
push eax
call edx
mov edi, eax
xor ecx, ecx
cmp edi, ecx
je 0x419d2f
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov eax, dword [esp + 0x14]
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040dc40
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx eax, word [esp + 0x20]
cmp eax, ecx
je 0x419d47
cmp eax, 0x40
jne 0x419d91
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x419d4d
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
lea ebx, [esi + 0x3c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x64]
mov dword [ebx], edx
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [ebx + 4], eax
mov dword [esp + 0x7c], 4
mov dword [esp + 0x6c], vtable.CObjectVector_class_CStringBase_wchar_t__.0
call fcn.0040cbf0
cmp dword [esp + 0x6c], 0
jne 0x419da4
lea eax, [esp + 0x64]
push eax
call fcn.0040bb60
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x419c14
lea edi, [esp + 0x14]
lea eax, [esp + 0x50]
call fcn.00408ad0
cmp byte [esi + 0x44], 0
jne 0x419dc0
lea ecx, [esp + 0x64]
call fcn.0040c2d0
cmp dword [esp + 0x6c], 0
je 0x419dda
cmp byte [esp + 0x13], 0
jne 0x419dda
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00419940
lea eax, [esp + 0x50]
push eax
lea ecx, [esi + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040d8b0
cmp byte [esi + 0x44], 0
je 0x419e52
add esi, 0x2c
lea edi, [esp + 0x44]
mov eax, esi
call fcn.0040bcb0
cmp byte [esp + 0x13], 0
je 0x419e12
mov eax, dword [esi]
push eax
call fcn.00416bf0
jmp 0x419e1b
mov ecx, dword [esi]
push ebx
push ecx
call fcn.00416a40
mov edx, dword [esp + 0x44]
push edx
call fcn.0040c4b0
mov eax, dword [esp + 0x54]
add esp, 4
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.0040bb60
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov edx, dword [esp + 0x14]
push edx
jmp 0x41a033
lea edi, [esp + 0x78]
call fcn.0040d1d0
mov ecx, dword [esp + 0x44]
mov eax, edi
push eax
call fcn.0040d0f0
test al, al
je 0x419f19
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00417130
test al, al
jne 0x419f19
cmp byte [esi + 0x139], al
je 0x419e9b
lea eax, [esi + 0x114]
mov edi, 0x435d34
call fcn.0040bcb0
jmp 0x419ed2
mov eax, dword [0x435cd0]
test eax, eax
je 0x419eb5
mov ecx, dword [esi + 0x134]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push 4
push ecx
push eax
call edx
mov ecx, dword [0x435d28]
mov eax, dword [esi + 0x70]
mov edx, dword [0x435d34]
mov eax, dword [eax + 4]
add esi, 0x70
push 0
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040c4b0
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call fcn.0040c4b0
mov eax, dword [esp + 0x54]
add esp, 4
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.0040bb60
lea ecx, [esp + 0x20]
call fcn.0040dc40
mov edx, dword [esp + 0x14]
push edx
jmp 0x419c14
cmp byte [esp + 0x13], 0
jne 0x419fda
mov eax, 0x18
call fcn.0040c480
xor ebx, ebx
cmp eax, ebx
je 0x419f46
mov dword [eax + 4], ebx
mov dword [eax], vtable.COutFileStream.0
mov dword [eax + 8], 0xffffffff
mov ebx, eax
xor edi, edi
mov dword [esi + 0x4c], ebx
cmp ebx, edi
je 0x419f57
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
lea edi, [eax + 8]
call fcn.0040d7a0
test al, al
jne 0x419fb7
cmp byte [esi + 0x139], al
je 0x419f9d
lea eax, [esi + 0x114]
mov edi, 0x435d40
call fcn.0040bcb0
test ebx, ebx
je 0x419ed2
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
jmp 0x419ed2
mov eax, dword [0x435cd0]
test eax, eax
je 0x419fb7
mov edx, dword [esi + 0x134]
mov ecx, dword [eax]
push 4
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test ebx, ebx
je 0x419fc3
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x419fd2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x50], ebx
mov dword [eax], ebx
lea eax, [esi + 0x2c]
lea edi, [esp + 0x44]
call fcn.0040bcb0
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0040c4b0
mov edx, dword [esp + 0x48]
add esp, 4
push edx
call fcn.0040c4b0
mov eax, dword [esp + 0x54]
add esp, 4
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.0040bb60
lea ecx, [esp + 0x20]
call fcn.0040dc40
jmp 0x41a02e
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [esp + 0x14]
push eax
call fcn.0040c4b0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0040dc40
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10