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

Disassembly:
sub esp, 0x44
mov ecx, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ebx, dword [ebx]
mov edx, ebx
push edi
mov edi, dword [esp + 0x84]
mov eax, dword [esi]
push 0xfffffffffffffffe
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
pop ebp
mov dword [esp + 0x4c], eax
lea eax, [ecx + 6]
push ebp
mov dword [esp + 0x38], edx
xor edx, edx
mov dword [esp + 0x54], ebx
pop esi
mov dword [esp + 0x10], eax
cmp byte [ebx], 0x7f
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], esi
jne 0x100214ab
movzx edx, byte [ebx + 3]
movzx eax, byte [ebx + 4]
shl edx, 8
or edx, eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x44], eax
xor eax, eax
mov word [esp + 0x4a], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x30], edx
mov word [esp + 0x48], dx
xor edx, edx
mov dword [edi + 0x20], eax
lea eax, [ebx + 1]
add ecx, 3
mov byte [eax], dl
add ecx, ebx
cmp dword [esp + 0x88], 0
mov dword [esp + 0x3c], eax
lea eax, [ebx + 2]
mov byte [eax], dl
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push 0
pop edx
cmove eax, edx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x80], ecx
je 0x100214f8
mov edx, dword [esp + 0x38]
mov dword [edi + 0x38], edx
cmp dword [esp + 0x68], 0
je 0x10021521
lea eax, [ecx + 1]
mov byte [ecx], 0x76
xor ecx, ecx
mov dword [esp + 0x28], eax
mov word [eax], cx
add eax, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
push eax
push edi
push dword [esp + 0x7c]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.1001e460
add esp, 0x28
test eax, eax
je 0x100216cb
mov eax, dword [edi + 0x38]
cmp eax, dword [esp + 0x20]
mov edx, dword [esp + 0x88]
cmovle eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
test edx, edx
jne 0x10021647
cmp byte [ebx], 0x71
mov eax, dword [esp + 0x24]
je 0x10021598
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
jmp 0x100215ea
test esi, esi
js 0x100215b2
cmp esi, eax
je 0x100215ae
test ebp, ebp
cmovns esi, ebp
mov ebp, esi
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
test esi, esi
jns 0x100215cb
test eax, eax
js 0x100215cb
mov ecx, dword [esp + 0x84]
test ecx, ecx
cmovs ecx, eax
mov dword [esp + 0x84], ecx
jmp 0x100215d2
mov ecx, dword [esp + 0x84]
mov eax, ecx
xor eax, ebp
test eax, 0xdfffffff
je 0x100215e4
or dword [esp + 0x14], 0xffffffff
jmp 0x100215ea
or ebp, ecx
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x68], 0
mov esi, dword [esp + 0x80]
je 0x1002164e
xor eax, eax
xor ebp, ebp
push edi
push eax
mov byte [esi], al
inc ebp
mov eax, dword [esp + 0x60]
shr eax, 0xb
and eax, ebp
push eax
push ebx
call fcn.10021cdf
mov ecx, eax
add esp, 0x10
cmp ecx, 0xfffffffd
jne 0x10021627
mov dword [edi + 0x60], ebp
mov edx, dword [esp + 0x88]
jmp 0x1002164e
test ecx, ecx
js 0x100216b0
cmp ecx, dword [edi + 0x40]
jle 0x10021637
mov dword [edi + 0x40], ecx
mov edx, dword [esp + 0x28]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
jmp 0x1002161e
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x18]
cmp byte [ebp], 0x7c
jne 0x100216df
test edx, edx
je 0x10021676
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
add ecx, 3
mov eax, dword [eax]
add ecx, eax
add dword [esp + 0x10], 3
jmp 0x1002169a
mov ecx, dword [esp + 0x80]
mov eax, ecx
sub eax, ebx
sar eax, 8
mov byte [ecx], 0x71
mov byte [ecx + 1], al
mov al, cl
sub al, bl
mov ebx, ecx
mov byte [ecx + 2], al
mov dword [esp + 0x50], ecx
add ecx, 3
mov esi, dword [esp + 0x1c]
inc ebp
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x14]
jmp 0x100214e3
push 0x19
pop eax
push 0x46
cmp ecx, 0xfffffffc
pop edx
cmove eax, edx
cmp ecx, 0xfffffffe
mov ecx, dword [esp + 0x64]
push 0x24
pop edx
cmove eax, edx
mov dword [ecx], eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
test edx, edx
jne 0x10021707
mov edx, esi
sub edx, ebx
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
mov byte [ebx + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [ebx + 1], al
sub ebx, edx
test ecx, ecx
jne 0x100216e7
mov ecx, dword [esp + 0x80]
mov eax, ecx
mov edx, dword [esp + 0x34]
sub eax, edx
sar eax, 8
mov byte [ecx], 0x72
lea ebx, [ecx + 3]
mov byte [ecx + 1], al
mov al, cl
sub al, dl
cmp dword [esp + 0x30], 0
mov byte [ecx + 2], al
jbe 0x10021795
mov eax, dword [edi + 0x20]
xor ecx, ecx
cmp word [eax + 6], cx
je 0x1002178a
mov eax, ebx
sub eax, edx
push eax
push edx
lea eax, [edx + 3]
push eax
call sym.glib_lite.dll_Ordinal_350
mov edx, dword [esp + 0x40]
add ebx, 3
mov eax, dword [esp + 0x48]
mov ecx, ebx
sub ecx, edx
add esp, 0xc
sar ecx, 8
mov byte [edx], 0x7b
mov byte [eax], cl
mov al, bl
sub al, dl
mov edx, dword [esp + 0x40]
mov byte [edx], al
mov byte [ebx], 0x72
mov byte [ebx + 1], cl
mov byte [ebx + 2], al
add ebx, 3
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x20]
add ecx, 6
mov dword [esp + 0x10], ecx
jmp 0x1002178e
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [edi + 0x20], eax
jmp 0x10021799
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x88]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
mov eax, dword [esp + 0x78]
mov dword [edx], ebp
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test esi, esi
je 0x100217eb
mov edx, dword [esi]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x100217e7
mov eax, dword [esp + 0x64]
mov dword [eax], 0x14
jmp 0x100216d5
add ecx, edx
mov dword [esi], ecx
xor eax, eax
inc eax
jmp 0x100216d7