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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
and esp, 0xfffffff8
sub esp, 0x9c
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov eax, dword [eax + 0x28]
test al, 8
jne 0x420220
test al, 0x10
jne 0x4201e8
test al, 1
jne 0x420308
test al, 0x80
jne 0x420260
test ah, 0x40
jne 0x4203a8
mov edx, dword [ebx + 0x38]
movzx eax, word [esi]
mov dword [esi + 4], 0
mov dword [esi + 8], edx
and ax, 0xfe00
mov dword [esi + 0xc], 0
or eax, 1
mov dword [esi + 0x1c], 0
mov word [esi], ax
mov dword [esi + 0x18], 0xffffffff
jmp 0x42023f
lea eax, [edi + 1]
mov byte [edi], 0x5b
mov dword [esp + 0xc], 0x3f
mov edi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sym._memory_get_register
test eax, eax
jne 0x420270
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sym._memory_get_register
test eax, eax
je 0x42020f
mov dword [esi + 0x14], 3
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x18], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add edx, dword [ebx + 0x38]
jmp 0x4201b4
mov dword [esp + 0x1c], edi
mov dword [esp], edi
mov edi, 0x3f
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], esi
sub edi, eax
add eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
call sym._types_extract_as_integer
movzx ecx, word [esi]
mov edx, dword [ebx + 0x38]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 3
and cx, 0xfe00
add edx, eax
mov dword [esi + 0xc], 0
mov eax, ecx
mov dword [esi + 8], edx
or eax, 1
mov dword [esi + 0x1c], 0
mov word [esi], ax
mov dword [esi + 0x18], 0xffffffff
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
test edx, edx
js 0x420560
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], str._I64d_
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._snprintf_3
jmp 0x42023f
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 0xb
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
call sym._types_get_info
test eax, eax
je 0x4205d8
test byte [esp + 0x7d], 0x40
je 0x420590
mov eax, dword [ebx + 0x48]
sub eax, 0xe
cmp eax, 1
jbe 0x420380
mov eax, dword [ebx + 0x30]
and word [esi], 0xfe00
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0xffffffff
jmp 0x42023f
add ebx, 0x54
mov dword [esp + 8], str.Couldnt_dereference_pointer_for_const_value_for__s
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x40
mov dword [esp], edi
call sym._snprintf_3
jmp 0x42020f
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x43ac08]
mov dword [esp], eax
call sym._dbg_get_module
mov ecx, eax
test eax, eax
je 0x420540
mov eax, dword [eax + 0xc]
test eax, eax
je 0x420540
mov eax, dword [0x43ac0c]
test eax, eax
je 0x420540
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [0x43ac08]
test eax, eax
je 0x4205fc
mov edx, dword [eax + 0x2c]
movzx eax, word [esp + 0x3c]
and ax, 0xfe00
or eax, 1
cmp dword [edx + 4], 4
mov dword [esp + 0x40], 0
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 3
je 0x42064a
add eax, 0x202c
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0xffffffff
mov edx, dword [edx + 4]
lea eax, [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call sym._memory_fetch_integer
test eax, eax
je 0x420540
mov ecx, dword [esp + 0x1c]
movzx eax, word [esp + 0x5c]
mov edx, dword [ecx + 0xc]
add edx, dword [ebx + 0x20]
and ax, 0xfe00
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], edx
mov edx, dword [0x43ac08]
or eax, 1
mov word [esp + 0x5c], ax
mov eax, 4
mov dword [esp + 0x70], 3
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0xffffffff
test edx, edx
je 0x4204d0
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._memory_fetch_integer
test eax, eax
je 0x420540
mov eax, dword [0x43ac08]
lea ecx, [esp + 0x7c]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], 4
mov dword [esp + 4], ecx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [edx + 4]
test eax, eax
je 0x420540
mov eax, dword [esp + 0x7c]
cmp eax, 4
je 0x42066e
lea esi, cs:[esi]
nop
mov dword [esp + 8], str.Cannot_read_TLS_address_n
mov dword [esp + 4], 0x40
mov dword [esp], edi
call sym._snprintf_3
jmp 0x42020f
neg eax
mov dword [esp + 8], str.__I64d_
mov dword [esp + 0xc], eax
adc edx, 0
mov eax, dword [esp + 0x1c]
neg edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sym._snprintf_3
jmp 0x42023f
mov dword [esp], 4
call sym._lexeme_alloc_size
and word [esi], 0xfe00
mov dword [esi + 4], 0
mov dword [esi + 0x14], 3
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0xffffffff
mov edx, dword [ebx + 0x30]
mov dword [eax], edx
jmp 0x42023f
add ebx, 0x54
mov dword [esp + 8], str.Couldnt_get_full_value_information_for__s
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x40
mov dword [esp], edi
call sym._snprintf_3
jmp 0x42020f
movzx eax, word [esp + 0x3c]
mov dword [esp + 0x40], 0
mov edx, 4
mov dword [esp + 0x50], 3
and ax, 0xfe00
mov dword [esp + 0x48], 0
or eax, 1
mov dword [esp + 0x58], 0
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
add eax, 0x2c
mov dword [esp + 0x44], eax
jmp 0x420448
add eax, 0x2c
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0xffffffff
jmp 0x420445
mov ecx, dword [esp + 0x24]
mov edx, dword [0x43ac08]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
test edx, edx
je 0x420721
movzx eax, word [esp + 0x7c]
mov ecx, dword [edx + 0x2c]
mov edx, dword [esp + 0x18]
and ax, 0xfe00
imul edx, dword [ecx + 4]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0
or eax, 1
mov dword [esp + 0x90], 3
mov word [esp + 0x7c], ax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x7c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._memory_fetch_integer
test eax, eax
je 0x420540
mov edx, dword [ebx + 0x38]
add edx, dword [esp + 0x34]
jmp 0x4201b4
movzx edx, word [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x90], 3
mov dword [esp + 0x88], 0
and dx, 0xfe00
mov dword [esp + 0x98], 0
or edx, 1
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x94], 0xffffffff
lea edx, [ecx + edx*4]
mov dword [esp + 0x84], edx
jmp 0x4206ed