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

Disassembly:
push 0xffffffffffffffff
push 0x52a16c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59c6b8]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov edi, dword [esp + 0x174]
mov eax, dword [edi + 4]
push 0x532d68
push eax
mov dword [esp + 0x24], edi
call fcn.004a38b0
mov esi, eax
xor ebx, ebx
add esp, 8
mov dword [esp + 0x3c], esi
cmp esi, ebx
jne 0x40a3ce
push edi
push str.Couldnt_open_unicodeToUnicode_file_0:t
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.00412330
add esp, 0x14
xor eax, eax
jmp 0x40a6d4
push 4
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.004a30a0
push 0x4000
mov edi, eax
push ebx
push edi
mov dword [esp + 0x2c], edi
call fcn.00512510
push esi
lea eax, [esp + 0x78]
push 0x100
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
xor ebp, ebp
call fcn.004a3ad0
add esp, 0x20
test eax, eax
je 0x40a626
mov dword [esp + 0x30], ebx
jmp 0x40a434
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
push str.__t_r_n
inc ebp
push ecx
mov dword [esp + 0x34], ebp
call fcn.005127ef
add esp, 8
test eax, eax
je 0x40a5e6
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a458
sub ecx, esi
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x24], ebx
test ecx, ecx
jle 0x40a491
lea ecx, [ecx]
movzx esi, byte [edx + eax]
mov esi, dword [esi*4 + 0x5835a8]
test esi, esi
js 0x40a5e6
shl ebx, 4
inc edx
add ebx, esi
cmp edx, ecx
jl 0x40a470
mov dword [esp + 0x24], ebx
xor ebp, ebp
lea edi, [esp + 0x40]
jmp 0x40a4a0
push str.__t_r_n
push 0
call fcn.005127ef
add esp, 8
test eax, eax
je 0x40a519
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a4b8
sub ecx, esi
xor edx, edx
mov dword [edi], 0
test ecx, ecx
jle 0x40a4f1
lea ecx, [ecx]
movzx esi, byte [edx + eax]
mov esi, dword [esi*4 + 0x5835a8]
test esi, esi
js 0x40a4fc
mov ebx, dword [edi]
shl ebx, 4
add ebx, esi
inc edx
mov dword [edi], ebx
mov ebx, dword [esp + 0x24]
cmp edx, ecx
jl 0x40a4d0
inc ebp
add edi, 4
cmp ebp, 8
jl 0x40a4a0
jmp 0x40a519
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str.Bad_line__0:d__in_unicodeToUnicode_file_1:t
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
call fcn.00412330
add esp, 0x18
cmp ebp, 1
jge 0x40a52d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
jmp 0x40a5ec
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x40a56f
mov esi, eax
add eax, eax
mov dword [esp + 0x14], eax
cmp ebx, eax
jae 0x40a537
mov ecx, dword [esp + 0x18]
push 4
push eax
push ecx
call fcn.004a3110
mov edx, dword [esp + 0x20]
sub edx, esi
add edx, edx
add edx, edx
mov edi, eax
push edx
lea eax, [edi + esi*4]
push 0
push eax
mov dword [esp + 0x30], edi
call fcn.00512510
add esp, 0x18
jmp 0x40a573
mov edi, dword [esp + 0x18]
cmp ebp, 1
jne 0x40a581
mov ecx, dword [esp + 0x40]
mov dword [edi + ebx*4], ecx
jmp 0x40a5d9
mov eax, dword [esp + 0x34]
mov dword [edi + ebx*4], 0
cmp dword [esp + 0x28], eax
jne 0x40a5af
mov edx, dword [esp + 0x20]
add eax, 0x10
push 0x28
push eax
push edx
mov dword [esp + 0x40], eax
call fcn.004a3110
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x40a5b3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [edx + eax], ebx
test ebp, ebp
jle 0x40a5ca
lea edi, [edx + eax + 4]
mov ecx, ebp
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
inc dword [esp + 0x28]
mov dword [edx + eax + 0x24], ebp
add edx, 0x28
mov dword [esp + 0x30], edx
cmp ebx, dword [esp + 0x38]
jb 0x40a5ff
inc ebx
mov dword [esp + 0x38], ebx
jmp 0x40a5ff
mov eax, dword [esp + 0x1c]
push eax
push ebp
push str.Bad_line__0:d__in_unicodeToUnicode_file_1:t
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
call fcn.00412330
add esp, 0x18
mov esi, dword [esp + 0x3c]
push esi
lea ecx, [esp + 0x64]
push 0x100
push ecx
call fcn.004a3ad0
add esp, 0xc
test eax, eax
jne 0x40a430
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
push esi
call fcn.005126eb
push 0x34
call fcn.00511699
mov esi, eax
add esp, 8
mov dword [esp + 0x3c], esi
mov dword [esp + 0x16c], 0
test esi, esi
je 0x40a6c7
push 8
call fcn.00511699
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x16c], 1
test eax, eax
je 0x40a673
mov edx, dword [esp + 0x1c]
push edx
mov ecx, eax
call fcn.004a1d60
jmp 0x40a675
xor eax, eax
push 4
push ebx
mov byte [esp + 0x174], 0
mov dword [esi], eax
mov dword [esi + 8], ebx
call fcn.004a30a0
mov ecx, dword [esi + 8]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 4], eax
call fcn.00511be0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0xc], edx
add esp, 0x14
lea edx, [esi + 0x1c]
push edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x40a6c9
xor esi, esi
push edi
call fcn.004a2fd0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.00511afd
add esp, 0x15c
ret