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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, edx
mov edx, dword [edx + 4]
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x3c]
push dword [esi + 0xc]
push 1
push dword [esi + 8]
call fcn.00427c60
add esp, 0xc
cmp dword [esp + 0x3c], 0x80000000
je 0x40453b
movsd xmm1, qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x54]
movsd xmm2, qword [esp + 0x3c]
mov ecx, dword [esi]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x78], xmm2
movsd qword [esp + 0x80], xmm1
cmp dword [ecx + 0x3c], 0x80000000
je 0x403fc3
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x403fc3
mov ebx, dword [ecx + 0x40]
lea eax, [eax + eax*2]
mov dword [esp + 0x28], ecx
lea eax, [ebx + eax*4]
mov dword [esp + 0x64], eax
jmp 0x403c56
push edi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
add ebx, 0xc
cmp ebx, dword [esp + 0x64]
je 0x403fc3
mov esi, dword [ecx + 0x28]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ebx
push dword [ebx + 8]
call fcn.004255f0
add esp, 4
mov ebx, dword [esp + 0x38]
lea ecx, [ebx - 2]
cmp ebx, 1
jbe 0x404520
mov edi, dword [esp + 0x34]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x68], eax
mov ecx, dword [edi + eax*4 + 4]
mov eax, dword [edi + eax*4 + 8]
mov edx, edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], eax
mov ecx, esp
push ebx
call fcn.004259e0
add esp, 4
cmp byte [esp], 4
mov dword [esp + 0x1c], edi
jne 0x403d70
mov edx, dword [esp + 4]
lea eax, [ebx + ebx*2]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa8], edx
push dword [edi + eax*4 - 4]
push dword [edi + eax*4 - 8]
call fcn.00417b80
add esp, 8
mov edi, dword [esp + 0x3c]
cmp edi, 0x80000000
mov dword [esp + 0x5c], edi
je 0x403f19
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x44], esi
ja 0x403f06
lea esi, [esp + 0x78]
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x20]
mov edx, esi
push 8
push dword [esp + 0x30]
push dword [esp + 0x68]
call fcn.00427090
add esp, 0xc
cmp byte [esp + 0x20], 4
jne 0x403dd4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x8c], 0
mov edx, esi
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x6c]
push 1
lea esi, [esp + 0x40]
push esi
push dword [eax + 8]
push dword [eax + 4]
call fcn.00432420
add esp, 0x10
cmp byte [esp + 0x6c], 4
jne 0x403e69
mov dword [esp + 0x8c], 0
jmp 0x403f02
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x78]
push eax
push dword [esp + 0x30]
call fcn.00427fb0
add esp, 8
lea esi, [edi + 4]
jmp 0x403da6
add esi, 0xc
dec ebx
je 0x403dc0
cmp dword [esi - 4], 0
je 0x403da0
push dword [esi]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x403da0
cmp dword [esp + 0x30], 0
je 0x403c41
push dword [esp + 0x1c]
jmp 0x403c33
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
je 0x403e4b
mov edi, esp
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.00407a80
movzx ecx, byte [esp]
cmp cl, 4
jne 0x404565
mov ecx, dword [esp + 0x88]
neg esi
mov eax, 0
mov dword [esp + 4], 0
mov dword [esp], 0
sbb eax, eax
push 1
push edi
push eax
push esi
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x404586
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x8c], 0
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push eax
push dword [esp + 0x30]
call fcn.00427fb0
add esp, 8
jmp 0x403f02
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edi, esp
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
je 0x403edc
mov ecx, edi
lea edx, [esp + 0x78]
call fcn.00407a80
movzx ecx, byte [esp]
cmp cl, 4
jne 0x404565
mov ecx, dword [esp + 0x88]
neg esi
mov eax, 0
mov dword [esp + 4], 0
mov dword [esp], 0
sbb eax, eax
push 1
push edi
push eax
push esi
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x404586
mov dword [esp + 0x8c], 0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebx
call fcn.00409be0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
mov edx, edi
push eax
call fcn.00428170
add esp, 4
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
test edi, edi
je 0x403f19
push eax
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0xa8]
test eax, eax
js 0x403f2b
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
lea esi, [eax + 4]
jmp 0x403f46
add esi, 0xc
dec ebx
je 0x403f60
cmp dword [esi - 4], 0
je 0x403f40
push dword [esi]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x403f40
cmp dword [esp + 0x30], 0
je 0x403f79
push dword [esp + 0x1c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp edi, 0x80000000
jne 0x403c49
cmp byte [esp + 0x40], 3
jne 0x403c49
mov esi, dword [esp + 0x44]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
push edi
call dword [ebx]
add esp, 4
cmp dword [ebx + 4], 0
je 0x403c32
cmp dword [ebx + 8], 9
jb 0x403c23
mov edi, dword [edi - 4]
jmp 0x403c23
cmp dword [ecx + 0x48], 0x80000000
lea esi, [esp + 0x3c]
je 0x4044dd
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x4044dd
mov edi, dword [ecx + 0x4c]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
mov dword [esp + 0x60], eax
jmp 0x404005
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x3c]
add edi, 0xc
cmp edi, dword [esp + 0x60]
je 0x4044dd
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], edi
mov edi, dword [edi + 8]
mov ecx, esi
mov esi, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edi
mov edx, eax
push edi
call fcn.004255f0
add esp, 4
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edx
push ebx
call fcn.004259e0
add esp, 4
cmp byte [esp + 0x30], 4
jne 0x404090
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], eax
je 0x4040e0
lea esi, [edi + 4]
jmp 0x404076
add esi, 0xc
dec ebx
je 0x4040e0
cmp dword [esi - 4], 0
je 0x404070
push dword [esi]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x404070
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, esi
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], ecx
lea ecx, [esp + 0x78]
push eax
push edi
call fcn.00427fb0
add esp, 8
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x404110
lea esi, [edi + 4]
jmp 0x4040c6
add esi, 0xc
dec ebx
je 0x404110
cmp dword [esi - 4], 0
je 0x4040c0
push dword [esi]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4040c0
cmp dword [esp + 0x3c], 0
je 0x4040f6
push edi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
je 0x40412f
lea esi, [esp + 0x3c]
jmp 0x404146
cmp dword [esp + 0x3c], 0
je 0x403ff0
push edi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x403ff0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
lea esi, [esp + 0x3c]
je 0x40452c
mov dword [0x5a1188], eax
push 0x22
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x40452c
mov edi, eax
mov dword [esp], 0x11
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0x11
mov eax, dword [esp + 8]
mov ebx, dword [esp]
sub ebx, eax
mov dword [esp + 0x10], eax
nop word cs:[eax + eax]
nop dword [eax]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x48]
call sub.advapi32.dll_RegQueryInfoKeyW
cmp eax, 0xea
jne 0x4041e0
mov eax, dword [esp + 0x14]
inc eax
cmp ebx, eax
mov dword [esp + 0x14], eax
jae 0x404190
mov edx, dword [esp + 0x10]
mov ecx, esp
push eax
call fcn.0052fb70
add esp, 4
mov edi, dword [esp + 4]
jmp 0x404176
test eax, eax
jne 0x404220
mov eax, dword [esp + 0x14]
mov ebx, esp
test eax, eax
je 0x40440a
mov dword [esp + 8], eax
lea eax, [edi + eax*2]
lea ecx, [esp + 0x30]
mov edx, esi
mov word [esp + 0x3c], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
call fcn.00528f20
cmp dword [esp], 0
jne 0x404239
jmp 0x404248
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 0x80000001
mov ebx, esp
cmp dword [esp], 0
je 0x404248
push edi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x30]
cmp eax, 0x80000001
jne 0x4042c0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x9c]
mov dword [esp + 0x3c], 0x53b8a8
mov dword [esp + 0x40], 2
mov dword [esp + 0x4c], 0
mov dword [esp + 0x14], edx
mov edx, esi
mov dword [esp + 0x18], 0x409b60
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], ecx
mov ecx, ebx
mov dword [esp + 0x48], 1
call fcn.00447bd0
lea ecx, [esp + 0x78]
mov edx, ebx
lea eax, [esp + 0x6c]
push eax
jmp 0x404319
cmp eax, 0x80000000
jne 0x40433d
lea ecx, [esp + 0x14]
lea eax, [esp + 0x9c]
mov dword [esp + 0x3c], 0x53b8a8
mov dword [esp + 0x40], 2
mov dword [esp + 0x4c], 0
mov edx, esi
mov dword [esp + 0x44], ecx
mov ecx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x409b60
mov dword [esp + 0x48], 1
call fcn.00447bd0
lea ecx, [esp + 0x78]
mov edx, ebx
mov word [esp + 0x3c], 1
push esi
call fcn.00428170
add esp, 4
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test eax, eax
js 0x403ff8
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ff8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, ebx
lea ebx, [esp + 0x78]
mov dword [esp + 0x10], eax
mov byte [esp], 0xc4
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
mov ecx, esi
mov edx, ebx
push 1
push edi
call fcn.00426f60
add esp, 8
movzx eax, byte [esp + 0x3c]
cmp al, 4
jne 0x404421
mov eax, dword [esp + 0x28]
mov ecx, esi
mov edx, ebx
bswap eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
call fcn.00426f60
add esp, 8
movzx eax, byte [esp + 0x3c]
mov edi, dword [esp + 0x10]
cmp al, 4
jne 0x40443f
mov ecx, esi
mov edx, ebx
push dword [esp + 0x28]
push dword [esp + 0x60]
call fcn.00426f60
add esp, 8
movzx eax, byte [esp + 0x3c]
cmp al, 4
jne 0x40443f
mov eax, dword [esp + 0x64]
mov ecx, esi
mov edx, ebx
bswap eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
call fcn.00426f60
add esp, 8
movzx eax, byte [esp + 0x3c]
cmp al, 4
jne 0x40443f
lea ecx, [esp + 0x20]
mov edx, ebx
push dword [esp + 0x64]
push dword [esp + 0x6c]
call fcn.00426f60
add esp, 8
cmp byte [esp + 0x20], 4
mov ebx, esp
jne 0x404457
jmp 0x4044be
mov dword [esp + 0x30], 0x80000000
cmp dword [esp], 0
jne 0x404239
jmp 0x404248
lea edx, [esp + 0x3d]
mov edi, dword [esp + 0x10]
lea ebx, [esp + 0x21]
mov ecx, dword [edx]
mov edx, dword [edx + 3]
mov dword [ebx + 3], edx
mov dword [ebx], ecx
mov ebx, esp
mov byte [esp + 0x20], al
jmp 0x404457
lea edx, [esp + 0x3d]
lea ebx, [esp + 0x21]
mov ecx, dword [edx]
mov edx, dword [edx + 3]
mov dword [ebx + 3], edx
mov dword [ebx], ecx
mov byte [esp + 0x20], al
mov ebx, esp
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x9c]
mov dword [esp + 0x3c], 0x53b8a8
mov dword [esp + 0x40], 2
mov dword [esp + 0x4c], 0
mov dword [esp + 0x14], edx
mov edx, esi
mov dword [esp + 0x18], 0x409b60
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], ecx
mov ecx, ebx
mov dword [esp + 0x48], 1
call fcn.00447bd0
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x78]
mov edx, ebx
push eax
call fcn.00428170
add esp, 4
test edi, edi
je 0x404321
push dword [esp + 0x68]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x404321
mov eax, dword [esp + 0xa4]
movsd xmm1, qword [esp + 0x88]
movsd xmm0, qword [esp + 0x90]
movsd xmm2, qword [esp + 0x78]
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x80]
movsd qword [eax + 0x18], xmm0
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
push 0x53b7d0
call fcn.00532ca0
mov ecx, 2
mov edx, 0x22
call fcn.00531970
movsd xmm0, qword [esp + 0x40]
lea eax, [esp + 0x78]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
movsd qword [esp + 0x78], xmm0
push 0x53ba98
push 0x539ed0
push eax
call fcn.00533020
movzx edx, byte [esp + 7]
movzx eax, word [esp + 5]
mov esi, dword [esp + 1]
movzx ecx, cl
shl edx, 0x10
or eax, edx
shld eax, esi, 8
shl esi, 8
or ecx, esi
jmp 0x40458e
call dword [sym.imp.kernel32.dll_GetLastError]
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x53b8c8
push 0x539ed0
lea eax, [esp + 8]
push eax
call fcn.00533020
int3