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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x74]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x68]
mov eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
push edi
mov eax, dword [esi + 0x2c4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
test eax, eax
je 0x10054401
mov ecx, dword [esp + 0x80]
cmp ecx, dword [eax + 0xc]
jb 0x100549a8
ja 0x10054401
cmp ebp, dword [eax + 8]
jb 0x100549a8
cmp dword [esi + 0x18], 0x6e756f73
jne 0x10054411
mov dword [esi + 0x50], 1
mov edi, dword [esp + 0x68]
push 1
push edi
call fcn.1004589d
pop ecx
pop ecx
test eax, eax
je 0x100549ad
lea eax, [esp + 0x28]
push eax
push edi
call fcn.100457c1
pop ecx
pop ecx
test eax, eax
je 0x100549ad
lea eax, [esp + 0x20]
push eax
push edi
call fcn.10045804
pop ecx
pop ecx
test eax, eax
je 0x100549ad
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
test bl, 1
je 0x100544c4
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub eax, ecx
cmp eax, 4
jb 0x100549ad
mov eax, dword [edi]
add eax, ecx
push eax
call fcn.100334ce
add dword [edi + 8], 4
pop ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x6c], eax
and eax, edx
cmp eax, 0xffffffff
jne 0x100544a9
mov eax, dword [esp + 0x80]
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov ecx, eax
jmp 0x100544af
mov ebp, dword [esp + 0x6c]
mov ecx, edx
mov eax, dword [esp + 0x34]
cdq
add eax, ebp
mov ebp, dword [esp + 0x90]
adc edx, ecx
mov dword [ebp], eax
jmp 0x1005451f
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
and eax, edx
cmp eax, 0xffffffff
jne 0x1005450a
mov edx, dword [esp + 0x80]
mov ecx, ebp
add ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x8c]
adc edx, dword [esp + 0x88]
add ecx, 8
mov dword [esp + 0x30], 1
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebp, dword [esp + 0x90]
mov eax, dword [ebp]
and eax, dword [ebp + 4]
cmp eax, 0xffffffff
jne 0x10054522
mov dword [ebp], ecx
mov dword [ebp + 4], edx
test bl, 4
je 0x10054555
test ebx, 0x400
je 0x10054538
xor ebx, 4
mov dword [esp + 0x14], ebx
jmp 0x10054555
lea eax, [esp + 0x24]
push eax
push edi
call fcn.10045804
pop ecx
pop ecx
test eax, eax
je 0x100549ad
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov eax, ebx
shr ecx, 6
and ecx, 4
and eax, 0x200
push 0
pop edx
cmovne edx, ecx
test eax, eax
mov dword [esp + 0x3c], edx
mov eax, ebx
lea edx, [ecx + 4]
cmove edx, ecx
and eax, 0x400
lea ecx, [edx + 4]
cmove ecx, edx
and dword [esp + 0x6c], 0
test eax, eax
mov eax, ebx
cmove edx, dword [esp + 0x6c]
and eax, 0x800
mov dword [esp + 0x40], edx
lea edx, [ecx + 4]
cmove edx, ecx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x4c], edx
push edx
cmove ecx, ebx
mov ebx, dword [esp + 0x24]
push ebx
push edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], ebx
call fcn.1004da97
add esp, 0xc
test eax, eax
je 0x100549ad
mov eax, dword [edi + 8]
add eax, dword [edi]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x48]
lea ecx, [eax + ebx]
cmp ecx, 0xfa0000
jae 0x100549ad
push 0x20
test eax, eax
jne 0x100545f5
push ebx
call sub.glib_lite.dll_Ordinal_407
pop ecx
pop ecx
jmp 0x10054601
push ecx
push dword [esi + 0x4c]
call sub.glib_lite.dll_Ordinal_409
add esp, 0xc
mov dword [esi + 0x4c], eax
test eax, eax
je 0x100549ad
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x258]
mov eax, ecx
mov edi, dword [edx + 0x25c]
and eax, edi
cmp eax, 0xffffffff
je 0x10054656
push 0
push 0x3b9aca00
push 0
push dword [esi + 0x40]
push edi
push ecx
call fcn.1005d425
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x64]
mov ebx, edx
or dword [eax + 0x258], 0xffffffff
or dword [eax + 0x25c], 0xffffffff
jmp 0x100547c4
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x100546bf
mov ebx, dword [esp + 0x98]
test ebx, ebx
jl 0x1005467d
mov edi, dword [esp + 0x94]
jg 0x100547ae
test edi, edi
jne 0x100547ae
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x100546a9
push 0
push 0x3b9aca00
push 0
push dword [esi + 0x40]
push dword [eax + 4]
push dword [eax]
call fcn.1005d425
add esp, 0x18
mov edi, eax
mov ebx, edx
jmp 0x100547ae
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
jmp 0x100547ae
mov eax, dword [esi + 0x4c]
xor ebx, ebx
shl ecx, 5
mov edi, dword [ecx + eax - 8]
add edi, dword [ecx + eax - 0x10]
adc ebx, dword [ecx + eax - 0xc]
cmp dword [esp + 0x9c], 0
je 0x100547ae
cmp dword [edx + 0x228], 0
jne 0x100547ae
cmp dword [esp + 0x98], ebx
jb 0x1005471a
ja 0x10054702
cmp dword [esp + 0x94], edi
jbe 0x1005471a
mov eax, dword [esp + 0x94]
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
sbb eax, ebx
jmp 0x10054730
mov eax, edi
sub eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
mov eax, ebx
sbb eax, dword [esp + 0x98]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x64]
shrd ecx, eax, 1
shr eax, 1
mov dword [esp + 0x24], ecx
xor ecx, ecx
push ecx
mov dword [esp + 0x3c], eax
mov eax, 0x3b9aca00
push eax
push ecx
push dword [esi + 0x40]
push ecx
push eax
call fcn.1005d425
mov dword [esp + 0x4c], eax
add esp, 0x18
mov eax, dword [esp + 0x38]
cmp eax, edx
jb 0x10054777
mov ecx, dword [esp + 0x24]
ja 0x10054792
cmp ecx, dword [esp + 0x34]
ja 0x10054792
xor ecx, ecx
mov eax, 0x3b9aca00
push ecx
push eax
push ecx
push dword [esi + 0x40]
push ecx
push eax
call fcn.1005d425
mov ecx, eax
add esp, 0x18
mov eax, edx
cmp dword [esp + 0x20], eax
jb 0x100547ae
ja 0x100547a0
cmp dword [esp + 0x1c], ecx
jbe 0x100547ae
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
push 0
push dword [esi + 0x40]
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.1005d425
add esp, 0x18
mov eax, dword [ebp]
and dword [esp + 0x24], 0
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x48]
shl eax, 5
add eax, dword [esi + 0x4c]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
jbe 0x10054936
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edx, eax
mov dword [esp + 0x10], eax
and dword [esp + 0x10], 4
and ecx, 0x100
and edx, 0x200
mov dword [esp + 0x50], ecx
and eax, 0x800
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x10054831
push dword [esp + 0x6c]
call fcn.100334ce
mov edx, dword [esp + 0x3c]
pop ecx
jmp 0x10054835
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
test edx, edx
je 0x1005484e
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x3c]
push eax
call fcn.100334ce
pop ecx
jmp 0x10054852
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x1005486d
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x78]
cmove eax, dword [esp + 0x2c]
jmp 0x1005488c
test dword [esp + 0x14], 0x400
je 0x10054888
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x40]
push eax
call fcn.100334ce
pop ecx
jmp 0x1005488c
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x44], 0
mov dword [esp + 0x18], eax
je 0x100548aa
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x48]
push eax
call fcn.100334ce
pop ecx
mov ecx, eax
jmp 0x100548ac
xor ecx, ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x6c], eax
mov eax, dword [ebp]
mov dword [edx + 8], eax
mov eax, dword [ebp + 4]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x18], eax
xor eax, eax
cmp cl, 0x40
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], ebx
sete al
shr ecx, 0x10
not ecx
and ecx, 1
cmp dword [esp + 0x30], 0
push 0
cmovne ecx, eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x1c], ecx
add dword [ebp], eax
mov eax, dword [esp + 0x24]
pop ecx
adc dword [ebp + 4], ecx
add edi, eax
adc ebx, ecx
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x24]
adc dword [esi + 0x5c], ecx
add edx, 0x20
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jb 0x1005481d
push 0
push dword [esi + 0x40]
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.1005d425
mov ebx, dword [esp + 0x7c]
push edx
push eax
push ebx
call fcn.10045905
mov ecx, dword [ebp]
add esp, 0x24
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x54]
sub ecx, edx
mov edi, dword [esp + 0x58]
sbb eax, edi
mov dword [ebx + 0x1e8], ecx
mov dword [ebx + 0x1ec], eax
mov dword [ebx + 0x1f4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x210], edx
mov dword [ebx + 0x214], edi
mov dword [ebx + 0x1f0], ecx
add dword [esi + 0x48], eax
add dword [esi + 0x54], eax
cmp dword [esi + 0x2c4], 0
je 0x100549a8
and dword [esi + 0x2c4], 0
xor eax, eax
inc eax
jmp 0x100549af
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret