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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edx + 8]
imul ebx, eax, 0xb8
add ebx, dword [ecx + 0x28]
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x10], 3
jbe 0x52eb7f
mov edi, edx
lea eax, [esp + 0x10]
push eax
call fcn.0051449e
pop eax
cmp byte [ebx + 0xa2], 0
je 0x52eb8b
push 2
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x625a0b
mov dword [esi + 0x10], 0x21
and dword [esi + 4], 0
mov dword [esi], eax
jmp 0x52ee48
mov dword [esi + 8], 3
jmp 0x52ee3e
mov eax, dword [ebx + 0x68]
lea ecx, [ebx + 0x60]
cmp eax, 3
je 0x52ec98
mov dword [esp + 0x40], ecx
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], edx
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x10], ecx
call dword [ecx + 0x2c]
lea ecx, [esp + 0x3c]
add esp, 0xc
xor eax, eax
cmp dword [ecx], eax
jne 0x52ecce
push 0x1e
pop ecx
xor edx, edx
inc edx
call fcn.0045c366
lea ecx, [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x1e
call fcn.0055d80d
mov dword [esp + 8], edx
push edx
mov dword [esp + 0x50], eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
call dword [eax + 0x20]
add esp, 0x10
lea eax, [esp + 0x10]
cmp byte [eax], 4
je 0x52ec34
mov eax, dword [esp + 0x10]
cmp al, 4
jne 0x52ee0b
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x4c]
cmp eax, 0x1e
mov dword [esp + 0x28], eax
jne 0x52eee2
mov cl, byte [edx + 6]
mov eax, dword [edx]
mov byte [esp + 0x12], cl
cmp eax, 0x4034b50
movzx ecx, word [edx + 4]
mov word [esp + 0x10], cx
jne 0x52eced
mov eax, dword [edx + 7]
mov cl, byte [esp + 0x12]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [edx + 0xb]
mov dword [esp + 0x30], 0x4034b50
mov byte [esp + 0x36], cl
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0x10]
mov word [esp + 0x34], ax
jmp 0x52ed0d
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], ecx
and dword [esp + 0x14], 0
and dword [esp + 0x10], 0
lea ecx, [esp + 0x30]
push edx
push dword [edi]
push ecx
call dword [eax + 0x2c]
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x30]
cmp dword [ecx], eax
je 0x52ecdb
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
jmp 0x52ee35
cmp word [ebx + 0x78], 2
jne 0x52edee
push 2
jmp 0x52edf7
mov eax, dword [0x625b9c]
mov dword [esp + 0x33], 1
mov dword [esp + 0xc], eax
mov eax, dword [str.Invalid_local_file_header]
mov dword [esp + 4], eax
mov al, 1
mov dword [esp + 8], eax
movzx eax, word [edx + 0x1a]
movzx ecx, word [edx + 0x1c]
mov word [esp + 0x46], cx
mov word [esp + 0x48], ax
mov ecx, edx
push 0x1e
pop edx
call fcn.0044816a
cmp byte [esp + 8], 0
jne 0x52ee29
lea eax, [ebx + 0x68]
movzx ecx, word [esp + 0x48]
lea edx, [esp + 0x10]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x46]
add eax, ecx
mov ecx, dword [ebx + 0x54]
add eax, dword [ebx + 0x50]
adc ecx, 0
add eax, 0x1e
adc ecx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ecx
and dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov eax, dword [ebx + 0x68]
cmp eax, 3
je 0x52ed8e
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 3
jne 0x52ee9d
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x52ee90
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp eax, 3
jne 0x52ef06
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
xor edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
xor edx, eax
or edx, dword [esp + 4]
lea edx, [esp + 0x10]
je 0x52eca1
and dword [esp + 0x10], 0
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x10]
lea edx, [esp + 0x28]
push eax
call fcn.005771e0
jmp 0x52ef18
cmp word [ebx + 0x20], 0
je 0x52ee50
push 4
pop eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x62df8c
mov dword [esi + 0x10], 0x20
jmp 0x52ee3e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
and dword [esp + 0x33], 0
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
call fcn.0044816a
mov eax, dword [esp + 0x33]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
and dword [esi + 4], 0
mov dword [esi], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
and dword [esi + 8], 0
mov dword [esi + 0xc], 0x20
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x6257c8
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
and dword [esi + 4], 0
mov dword [esi], 1
push 2
pop eax
and dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0xd0], eax
jmp 0x52ee48
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x52eca1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
inc edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x4b]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
push 0x625374
push 0x625314
push eax
call fcn.00579320
lea edx, [esp + 0x1c]
add esp, 0xc
jmp 0x52ed8e
and dword [esp + 0x10], 0
lea edx, [esp + 0x28]
xor ecx, ecx
push 0x625b1c
lea eax, [esp + 0x14]
push eax
push 0x625b30
call fcn.00577340
add esp, 0xc
ud2
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x6257a8
call fcn.00576b20
pop eax
ud2