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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x47d874]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x9d]
push ebx
push eax
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], bl
call fcn.0044fe00
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00422750
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 0x424426
mov esi, dword [esi + 4]
jmp 0x424429
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 0x42444e
xor edi, edi
jmp 0x4247be
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call fcn.00430b80
push 4
lea ecx, [esp + 0xac]
push ecx
push esi
call fcn.00430c10
add esp, 0x1c
mov eax, 4
mov ecx, str.ZTDL
lea edx, [esp + 0x98]
mov edi, edi
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x424498
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x424480
cmp eax, ebx
je 0x4244ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4244fc
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4244ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4244fc
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4244ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x4244fc
sub eax, 1
xor ebx, ebx
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x4244ed
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
jne 0x4244fe
xor eax, eax
cmp eax, ebx
je 0x42450c
mov dword [esp + 0xc], ebx
jmp 0x4247af
xor ebx, ebx
cmp edi, ebx
mov eax, 1
jg 0x4244ef
or eax, 0xffffffff
jmp 0x4244ef
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff8
push esi
call fcn.00430b80
push 4
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00430c10
add esp, 0x1c
test eax, eax
jne 0x424535
mov dword [esp + 0xc], ebx
jmp 0x4247af
push 2
push 0xffffffffffffffff
push 0xfffffbf8
push esi
call fcn.00430b80
push 0x400
lea ecx, [esp + 0xac]
push ecx
push esi
call fcn.00430c10
add esp, 0x1c
test eax, eax
jne 0x424567
mov dword [esp + 0xc], ebx
jmp 0x4247af
lea eax, [esp + 0x98]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x424571
sub eax, edx
push eax
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x64]
call fcn.00404936
push 4
push 0x46db9c
lea ecx, [esp + 0x64]
call fcn.00409e18
push 2
push 0xffffffffffffffff
push 0xfffffbf4
push esi
call fcn.00430b80
push 4
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00430c10
add esp, 0x1c
test eax, eax
jne 0x4245ca
mov dword [esp + 0xc], ebx
jmp 0x4247af
cmp dword [esp + 0x14], 0x64
jb 0x4245da
mov dword [esp + 0xc], ebx
jmp 0x4247af
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ecx
push esi
call fcn.00430b80
add esp, 0x10
xor edi, edi
cmp dword [esp + 0x14], ebx
jbe 0x42464e
push 4
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00430c10
push 4
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00430c10
mov eax, dword [esp + 0x40]
add esp, 0x18
cmp eax, ebx
je 0x424645
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.00423460
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x4245f2
cmp dword [esp + 0x20], ebx
jne 0x42465d
mov dword [esp + 0xc], ebx
jmp 0x4247af
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
push esi
call fcn.00430b80
push esi
call fcn.00430c50
mov ecx, dword [esp + 0x84]
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x30], ecx
call fcn.00430be0
mov eax, dword [esp + 0x80]
add esp, 0x20
cmp dword [esp + 0x74], 0x10
jae 0x42469d
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x10]
push ecx
push eax
push esi
call fcn.00430be0
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.00423d60
mov edx, dword [esp + 0x20]
push 1
push 0x46db94
push esi
mov dword [esp + 0x20], edx
call fcn.00430be0
push 1
push 0x46db95
push esi
call fcn.00430be0
push 4
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.00430be0
push 4
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.00430be0
push 4
lea edx, [esp + 0x44]
push edx
push esi
mov dword [esp + 0x4c], ebx
call fcn.00430be0
push 4
lea eax, [esp + 0x54]
push eax
push esi
call fcn.00430be0
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
mov edi, edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], eax
call fcn.0041bf90
test al, al
je 0x42477a
push 0x18
lea ecx, [esp + 0x34]
call fcn.0041c410
push eax
push esi
call fcn.00430be0
push 8
lea edx, [esp + 0x88]
push edx
push esi
call fcn.00430be0
add esp, 0x18
lea ecx, [esp + 0x30]
call fcn.00425010
jmp 0x424730
push 4
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00430be0
push 4
lea ecx, [esp + 0x88]
push ecx
push esi
call fcn.00430be0
mov edx, dword [str.5140599dd7a267faaa068b53199cf3f4]
push 0x20
push edx
push esi
call fcn.00430be0
push esi
call fcn.00430c50
add esp, 0x28
cmp esi, ebx
je 0x4247ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
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 0x4247f5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.0044e46d
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x4247e0
push ecx
call fcn.0044e46d
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x1c], ebx
jb 0x424816
mov eax, dword [esp + 0x60]
push eax
call fcn.0044e46d
add esp, 4
mov ecx, dword [esp + 0x49c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e472
mov esp, ebp
pop ebp
ret