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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov eax, dword [0x4ae8e0]
mov edi, dword [esp + 0x108]
mov ebx, dword [esp + 0x100]
mov dword [esp + 0x18], eax
test edi, edi
je 0x41fa42
mov eax, dword [esp + 0x108]
mov dword [eax], 0
movzx eax, byte [ebx + 0x2c]
test al, 8
je 0x41fd60
and eax, 7
cmp al, 3
ja 0x41fd60
test al, al
jne 0x41fe20
mov esi, dword [esp + 0x108]
test esi, esi
je 0x41fe60
mov eax, dword [0x4b9f40]
shl eax, 3
mov dword [esp], eax
call fcn.004211e0
test eax, eax
mov esi, eax
je 0x420119
mov edx, dword [0x4ae8e0]
movzx eax, byte [ebx + 0x2c]
movzx ecx, byte [esp + 0x104]
mov dword [esp + 0x74], edx
mov dword [esp + 0x9c], 0
and ecx, 7
and eax, 0xfffffff8
or eax, ecx
mov byte [ebx + 0x2c], al
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x90], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00422a10
mov edx, dword [ebx + 0xc4]
test eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], edx
je 0x41fd81
lea eax, [ebx + 0x48]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], fcn.004238b0
mov dword [esp], eax
mov dword [esp + 0x44], eax
call fcn.004205b0
test al, al
mov byte [esp + 0x23], al
je 0x41fd81
test byte [ebx + 0x2c], 0x40
je 0x42007f
mov eax, dword [0x4b9f40]
mov ebp, dword [0x4b9f4c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
test eax, eax
je 0x420310
lea ecx, [esp + 0x58]
xor edi, edi
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], edi
jmp 0x41fc13
jle 0x42037d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x41fe80
add ebp, 4
mov eax, dword [ebp]
test eax, eax
je 0x41ff79
cmp eax, 0x4b9fe0
je 0x41fc05
cmp eax, 0x4c3400
jne 0x41fc29
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x41fc05
test byte [ebx + 0x2c], 0x40
jne 0x41fc35
cmp dword [esp + 0x28], eax
je 0x41fc05
mov eax, dword [esp + 0x18]
test edi, edi
mov dword [0x4ae8e0], eax
je 0x41fc47
mov dword [esp], ebx
call edi
and dword [ebx + 0x28], 0xfd800
mov dword [ebx + 0xb8], 0
lea esi, [esp + 0x9c]
mov dword [ebx + 0x90], 0x4b8020
mov dword [ebx + 0xc4], 0
mov dword [esp], ebx
call fcn.00423990
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x41fe10
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00422db0
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00422a10
mov dword [esi], eax
mov eax, dword [ebp]
mov dword [ebx + 4], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0041d5e0
test eax, eax
jne 0x42010c
movzx eax, byte [ebx + 0x2c]
mov edx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [edx + eax*4 + 0x68]
test eax, eax
mov edi, eax
je 0x41fc05
mov ecx, dword [ebx + 4]
cmp dword [ebp], 0x4c3400
movzx eax, byte [0x4c341b]
movzx edx, byte [ecx + 0x1b]
cmove edx, eax
movzx eax, byte [ebx + 0x2c]
and eax, 7
cmp al, 2
je 0x41fdd5
cmp ecx, dword [0x4aebc0]
je 0x420123
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fd33
mov esi, dword [esp + 0x1c]
mov dword [eax + esi*4], ecx
add dword [esp + 0x1c], 1
cmp edx, dword [esp + 0x24]
jge 0x41fbf0
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], eax
jmp 0x41fbf6
mov dword [esp], 5
call fcn.0041b470
mov byte [esp + 0x23], 0
movzx eax, byte [esp + 0x23]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
and byte [ebx + 0x2c], 0xf8
mov dword [ebx + 4], eax
mov dword [esp], esi
call fcn.004a9de0
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x41fdb5
lea edx, [esp + 0x9c]
mov eax, ebx
call fcn.0041f920
mov edx, dword [esp + 0x30]
mov eax, ebx
call fcn.0041f970
mov byte [esp + 0x23], 0
movzx eax, byte [esp + 0x23]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebx + 0x2d], 8
jne 0x41fe40
mov eax, dword [esp + 0x34]
cmp dword [0x4aebc0], eax
je 0x41fdee
mov eax, dword [ebp]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41fe00
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
mov dword [ecx + edx*4], eax
add dword [esp + 0x3c], 1
jmp 0x41fbf6
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x30]
jmp 0x41fc8a
movzx eax, al
cmp eax, dword [esp + 0x104]
sete byte [esp + 0x23]
movzx eax, byte [esp + 0x23]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x4c], edx
call fcn.0041b170
cmp eax, 4
je 0x41fddb
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x4c]
jmp 0x41fd18
mov eax, dword [0x4b9f44]
mov ecx, dword [eax]
test ecx, ecx
jne 0x41fa70
mov edx, dword [esp + 0x18]
xor esi, esi
jmp 0x41fa90
mov eax, dword [ebx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0xb4], eax
mov eax, dword [0x4ae8e0]
mov dword [esp + 0xb8], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0xbc], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0xc8], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0xcc], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0xd0], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0xd4], eax
call fcn.00422a10
mov edx, dword [ebx + 0xc4]
test eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], edx
je 0x420129
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], fcn.004238b0
mov dword [esp], eax
call fcn.004205b0
test al, al
je 0x420129
xor edi, edi
jmp 0x41fc05
cmp dword [esp + 0x38], 1
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x40]
je 0x420019
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4201f9
mov eax, dword [esp + 0x34]
cmp dword [0x4aebc0], eax
je 0x42029a
mov eax, dword [esp + 0x3c]
sub eax, dword [0x4b9f40]
test esi, esi
mov dword [esp + 0x1c], eax
je 0x41ffc7
cmp eax, 1
jg 0x420276
cmp dword [esp + 0x1c], 1
jle 0x42038b
mov dword [esp + 0x100], ebx
mov ecx, dword [0x4b9f44]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, esi
lea edi, [edi]
add ecx, 4
mov edi, dword [ecx - 4]
test edi, edi
je 0x4203a2
mov eax, ebp
sub eax, 1
js 0x41fff0
cmp edi, dword [esi + eax*4]
jne 0x420000
movzx edx, byte [edi + 0x1b]
cmp edx, ebx
jg 0x420000
mov ebx, dword [esp + 0x100]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x420136
lea edx, [esp + 0x9c]
mov eax, ebx
call fcn.0041f970
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x1c], 1
je 0x420136
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jne 0x420211
mov dword [esp], 0xc
call fcn.0041b470
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x41fd89
mov dword [esp], ebx
mov eax, dword [esp + 0x2c]
call eax
jmp 0x41fd89
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0041d5e0
lea ecx, [esp + 0x58]
test eax, eax
mov dword [esp + 0x30], ecx
jne 0x41fd89
movzx eax, byte [ebx + 0x2c]
mov edx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [edx + eax*4 + 0x68]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x420345
movzx eax, byte [ebx + 0x2c]
and eax, 0x18
cmp al, 0x18
je 0x4201f0
mov dword [esp], esi
call fcn.004a9de0
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4200fc
lea edx, [esp + 0x9c]
mov eax, ebx
call fcn.0041f920
mov edx, dword [esp + 0x30]
mov eax, ebx
call fcn.0041f920
jmp 0x41fd71
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
jmp 0x420065
mov byte [esp + 0x23], 0
jmp 0x41fd71
mov esi, dword [esp + 0x2c]
jmp 0x4200cc
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
jmp 0x420071
cmp dword [esp + 0x48], edi
mov dword [ebx + 4], edi
je 0x4200cc
mov eax, dword [esp + 0x18]
mov dword [0x4ae8e0], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4202a3
mov dword [esp], ebx
call eax
and dword [ebx + 0x28], 0xfd800
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0x90], 0x4b8020
mov dword [ebx + 0xc4], 0
mov dword [esp], ebx
call fcn.00423990
mov eax, dword [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00422db0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0041d5e0
test eax, eax
jne 0x420071
movzx eax, byte [ebx + 0x2c]
mov edx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [edx + eax*4 + 0x68]
test eax, eax
jne 0x4200cc
mov dword [esp + 4], 0x1ec
mov dword [esp], str._builds_idf_crosstool_NG_.build_HOST_i686_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_format.c
call fcn.0041b3c0
jmp 0x4200cc
or byte [ebx + 0x2d], 4
jmp 0x4200db
mov dword [esp + 0x34], edi
jmp 0x41ffc7
mov edx, dword [esp + 0x9c]
test edx, edx
jne 0x420030
and byte [ebx + 0x2c], 0xf8
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov dword [esp], 0xd
call fcn.0041b470
mov ecx, dword [esp + 0x108]
test ecx, ecx
je 0x420370
mov eax, dword [esp + 0x108]
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
mov dword [esi + eax*4], 0
sub eax, 1
js 0x420260
mov edx, dword [esi + eax*4]
mov edx, dword [edx]
mov dword [esi + eax*4], edx
sub eax, 1
cmp eax, 0xffffffff
jne 0x420250
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fd9c
mov dword [esp], ebx
call eax
jmp 0x41fd9c
lea edx, [eax*4]
mov eax, dword [0x4b9f40]
mov dword [esp], esi
mov dword [esp + 8], edx
lea eax, [esi + eax*4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x41ffd2
mov edi, dword [esp + 0x34]
jmp 0x420019
and dword [ebx + 0x28], 0xfd800
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0x90], 0x4b8020
mov dword [ebx + 0xc4], 0
mov dword [esp], ebx
call fcn.00423990
mov eax, dword [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00422db0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0041d5e0
test eax, eax
je 0x4201be
jmp 0x41fd89
lea eax, [esp + 0x58]
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
jmp 0x41ff9c
cmp dword [esp + 0x104], 2
jne 0x41fb96
cmp dword [esp + 0x28], 0x4b9fe0
jne 0x41fb96
jmp 0x420059
mov dword [esp], esi
call fcn.004a9de0
jmp 0x420260
add dword [esp + 0x38], 1
mov edx, dword [esp + 0x24]
jmp 0x41fd4a
cmp dword [esp + 0x9c], 0
mov edi, dword [esp + 0x34]
jne 0x420030
jmp 0x420042
test esi, esi
mov ebx, dword [esp + 0x100]
je 0x4203dc
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x38], ebp
je 0x420202
mov ecx, dword [esp + 0x24]
xor eax, eax
mov edi, dword [esi + eax*4]
movzx edx, byte [edi + 0x1b]
cmp edx, ecx
jle 0x420019
add eax, 1
cmp eax, ebp
jl 0x4203c1
jmp 0x420019
cmp dword [esp + 0x9c], 0
jne 0x420030
jmp 0x42004d