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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x4595b8]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x9d]
push ebx
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00420e70
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x18], 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov word [esp + 0x95], ax
mov byte [esp + 0x97], al
mov dword [esp + 0x10], ebx
jb 0x42265d
mov esi, dword [esi + 4]
jmp 0x422660
add esi, 4
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422687
mov dword [esp + 0xc], ebx
jmp 0x4229da
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call fcn.0042a3f0
push 4
lea ecx, [esp + 0xac]
push ecx
push esi
call fcn.0042a480
add esp, 0x1c
mov eax, 4
mov ecx, str.ZTDL
lea edx, [esp + 0x98]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x4226cf
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4226b7
cmp eax, ebx
je 0x422724
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x422733
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x422724
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x422733
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x422724
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x422733
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x422724
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
jne 0x422735
xor eax, eax
cmp eax, ebx
je 0x422743
mov dword [esp + 0xc], ebx
jmp 0x4229cf
xor ebx, ebx
cmp edi, ebx
mov eax, 1
jg 0x422726
or eax, 0xffffffff
jmp 0x422726
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff8
push esi
call fcn.0042a3f0
push 4
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0042a480
add esp, 0x1c
test eax, eax
jne 0x42276c
mov dword [esp + 0xc], ebx
jmp 0x4229cf
push 2
push 0xffffffffffffffff
push 0xfffffbf8
push esi
call fcn.0042a3f0
push 0x400
lea ecx, [esp + 0xac]
push ecx
push esi
call fcn.0042a480
add esp, 0x1c
test eax, eax
jne 0x42279e
mov dword [esp + 0xc], ebx
jmp 0x4229cf
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x60]
call dword [0x4492a4]
push str.
lea ecx, [esp + 0x60]
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__::operator_char_const__]
push 2
push 0xffffffffffffffff
push 0xfffffbf4
push esi
call fcn.0042a3f0
push 4
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0042a480
add esp, 0x1c
test eax, eax
jne 0x4227eb
mov dword [esp + 0xc], ebx
jmp 0x4229cf
cmp dword [esp + 0x14], 0x64
jb 0x4227fb
mov dword [esp + 0xc], ebx
jmp 0x4229cf
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ecx
push esi
call fcn.0042a3f0
add esp, 0x10
xor edi, edi
cmp dword [esp + 0x14], ebx
jbe 0x42286f
push 4
lea edx, [esp + 0x30]
push edx
push esi
call fcn.0042a480
push 4
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0042a480
mov eax, dword [esp + 0x40]
add esp, 0x18
cmp eax, ebx
je 0x422866
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
lea ecx, [ecx + eax - 1]
lea edx, [esp + 0x38]
mov dword [esp + 0x40], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
call fcn.004215d0
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x422813
cmp dword [esp + 0x20], ebx
jne 0x42287e
mov dword [esp + 0xc], ebx
jmp 0x4229cf
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
push esi
call fcn.0042a3f0
push esi
call fcn.0042a4c0
mov ecx, dword [esp + 0x84]
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x30], ecx
call fcn.0042a450
mov eax, dword [esp + 0x80]
add esp, 0x20
cmp dword [esp + 0x74], 0x10
jae 0x4228be
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x10]
push ecx
push eax
push esi
call fcn.0042a450
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.00421ea0
mov edx, dword [esp + 0x20]
push 1
push 0x44b78c
push esi
mov dword [esp + 0x20], edx
call fcn.0042a450
push 1
push 0x44b78d
push esi
call fcn.0042a450
push 4
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.0042a450
push 4
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.0042a450
push 4
lea edx, [esp + 0x44]
push edx
push esi
mov dword [esp + 0x4c], ebx
call fcn.0042a450
push 4
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0042a450
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
lea ecx, [esp + 0x60]
mov edx, ecx
add esp, 0x48
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], edx
nop
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], eax
call fcn.00430330
test al, al
je 0x42299a
push 0x18
lea ecx, [esp + 0x34]
call fcn.0041adb0
push eax
push esi
call fcn.0042a450
push 8
lea edx, [esp + 0x88]
push edx
push esi
call fcn.0042a450
add esp, 0x18
lea ecx, [esp + 0x30]
call fcn.00414a80
jmp 0x422950
push 4
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0042a450
push 4
lea ecx, [esp + 0x88]
push ecx
push esi
call fcn.0042a450
mov edx, dword [str.5140599dd7a267faaa068b53199cf3f4]
push 0x20
push edx
push esi
call fcn.0042a450
push esi
call fcn.0042a4c0
add esp, 0x28
cmp esi, ebx
je 0x4229da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x20], ebx
je 0x422a0a
mov esi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4229f5
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x49c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004451f4
mov esp, ebp
pop ebp
ret