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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4daf7d
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x528f34]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x528f34]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
cmp dword [edi + 0x7c], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], eax
jne 0x4203dd
mov eax, 0x80004005
jmp 0x4207dc
cmp dword [ebp + 8], 0x64
je 0x42044d
lea eax, [edi + 0x123c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x11f4]
lea ebx, [ebp + 0xc]
lea eax, [esp + 0x20]
call fcn.0041e180
mov ebx, dword [esp + 0x20]
test ebx, ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
je 0x420415
cmp ebx, esi
je 0x42041b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x1c]
je 0x420440
test ebx, ebx
jne 0x42042f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x42043a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x10]
mov dword [ebp + 0xc], edx
lea eax, [edi + 0x123c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add eax, 0xffffffc0
cmp eax, 0x24
mov dword [esp + 0x3c], ecx
ja case.0x42046b.65
movzx eax, byte [eax + 0x420814]
jmp dword [eax*4 + 0x420804]
cmp dword [edi + 0x70], 0
je case.0x42046b.65
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ecx
jmp case.0x42046b.65
test ecx, ecx
je case.0x42046b.65
lea eax, [edi + 0x1238]
lea esi, [esp + 0x30]
call fcn.0041e1f0
mov dword [esp + 0x130], 0
mov ecx, dword [edi + 0x11ec]
mov edx, dword [ecx]
lea eax, [edi + 0x11e8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
lea esp, [esp]
mov eax, dword [eax + 4]
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.004222c0
test al, al
je 0x4205a4
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0x130], 1
call fcn.0041e230
add eax, 8
push eax
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
push eax
mov byte [esp + 0x138], 2
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
lea ecx, [esp + 0xcc]
mov bl, al
mov byte [esp + 0x130], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x130], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
jne 0x42056d
call fcn.00423a10
mov eax, dword [esp + 0x38]
jmp 0x4204d0
call fcn.0041e230
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x20]
mov dword [eax + 4], edi
call fcn.0041e230
mov eax, dword [eax]
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x24]
push eax
add ebx, 0x11f4
mov dword [esp + 0x20], edi
call fcn.0041dd80
mov dword [esp + 0x130], 0xffffffff
mov ecx, dword [esp + 0x34]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4207c2
test ecx, ecx
je case.0x42046b.65
lea eax, [edi + 0x1238]
lea esi, [esp + 0x30]
call fcn.0041e1f0
lea esi, [edi + 0x11e8]
lea ebx, [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x130], 3
call fcn.00421fa0
mov edx, dword [esi + 4]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], edx
call fcn.004222c0
test al, al
je 0x4207ae
mov esi, edi
call fcn.0041e230
add eax, 0x100c
push eax
lea ecx, [esp + 0x108]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x130], 4
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0x4feea4
lea ecx, [esp + 0x10c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, eax
cmp ebx, dword [edx]
jne 0x420667
mov eax, dword [esp + 0x14]
jmp 0x420779
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
push 0x4feea4
lea ecx, [esp + 0xec]
mov byte [esp + 0x134], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, eax
push ebx
push 0
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x110]
mov byte [esp + 0x13c], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push edi
push eax
mov bl, 7
lea eax, [esp + 0x80]
mov byte [esp + 0x138], bl
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
call edi
add esp, 0xc
push esi
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x13c], 8
call edi
add esp, 0xc
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x134], 9
call dword [0x4dc37c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x130], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x130], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe8]
mov byte [esp + 0x130], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0x130], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x11c], 0x10
mov eax, dword [esp + 0x108]
jae 0x420779
lea eax, [esp + 0x108]
push 0xffffffffffffffff
push eax
push 0x104
lea esi, [esp + 0x2c]
call fcn.0041e230
add eax, 0x100c
push eax
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
lea ecx, [esp + 0x104]
mov byte [esp + 0x130], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea esi, [esp + 0x30]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e210
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [edi + 0x7c]
push eax
call fcn.0041d150
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004cb642
mov esp, ebp
pop ebp
ret 0xc