Function at 0x10052533
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 0x1005257f
mov ecx, dword [esp + 0x80]
cmp ecx, dword [eax + 0xc]
jb 0x10052b26
ja 0x1005257f
cmp ebp, dword [eax + 8]
jb 0x10052b26
cmp dword [esi + 0x10], 0x6e756f73
jne 0x1005258f
mov dword [esi + 0x48], 1
mov edi, dword [esp + 0x68]
push 1
push edi
call fcn.10044877
pop ecx
pop ecx
test eax, eax
je 0x10052b2b
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1004479b
pop ecx
pop ecx
test eax, eax
je 0x10052b2b
lea eax, [esp + 0x20]
push eax
push edi
call fcn.100447de
pop ecx
pop ecx
test eax, eax
je 0x10052b2b
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
test bl, 1
je 0x10052642
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub eax, ecx
cmp eax, 4
jb 0x10052b2b
mov eax, dword [edi]
add eax, ecx
push eax
call fcn.10032849
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 0x10052627
mov eax, dword [esp + 0x80]
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov ecx, eax
jmp 0x1005262d
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 0x1005269d
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
and eax, edx
cmp eax, 0xffffffff
jne 0x10052688
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 0x100526a0
mov dword [ebp], ecx
mov dword [ebp + 4], edx
test bl, 4
je 0x100526d3
test ebx, 0x400
je 0x100526b6
xor ebx, 4
mov dword [esp + 0x14], ebx
jmp 0x100526d3
lea eax, [esp + 0x24]
push eax
push edi
call fcn.100447de
pop ecx
pop ecx
test eax, eax
je 0x10052b2b
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.1004bd83
add esp, 0xc
test eax, eax
je 0x10052b2b
mov eax, dword [edi + 8]
add eax, dword [edi]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x40]
lea ecx, [eax + ebx]
cmp ecx, 0xfa0000
jae 0x10052b2b
push 0x20
test eax, eax
jne 0x10052773
push ebx
call sub.glib_lite.dll_Ordinal_395
pop ecx
pop ecx
jmp 0x1005277f
push ecx
push dword [esi + 0x44]
call sub.glib_lite.dll_Ordinal_397
add esp, 0xc
mov dword [esi + 0x44], eax
test eax, eax
je 0x10052b2b
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x2c8]
mov eax, ecx
mov edi, dword [edx + 0x2cc]
and eax, edi
cmp eax, 0xffffffff
je 0x100527d4
push 0
push 0x3b9aca00
push 0
push dword [esi + 0x38]
push edi
push ecx
call fcn.1005b124
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x64]
mov ebx, edx
or dword [eax + 0x2c8], 0xffffffff
or dword [eax + 0x2cc], 0xffffffff
jmp 0x10052942
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x1005283d
mov ebx, dword [esp + 0x98]
test ebx, ebx
jl 0x100527fb
mov edi, dword [esp + 0x94]
jg 0x1005292c
test edi, edi
jne 0x1005292c
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x10052827
push 0
push 0x3b9aca00
push 0
push dword [esi + 0x38]
push dword [eax + 4]
push dword [eax]
call fcn.1005b124
add esp, 0x18
mov edi, eax
mov ebx, edx
jmp 0x1005292c
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
jmp 0x1005292c
mov eax, dword [esi + 0x44]
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 0x1005292c
cmp dword [edx + 0x298], 0
jne 0x1005292c
cmp dword [esp + 0x98], ebx
jb 0x10052898
ja 0x10052880
cmp dword [esp + 0x94], edi
jbe 0x10052898
mov eax, dword [esp + 0x94]
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
sbb eax, ebx
jmp 0x100528ae
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 + 0x38]
push ecx
push eax
call fcn.1005b124
mov dword [esp + 0x4c], eax
add esp, 0x18
mov eax, dword [esp + 0x38]
cmp eax, edx
jb 0x100528f5
mov ecx, dword [esp + 0x24]
ja 0x10052910
cmp ecx, dword [esp + 0x34]
ja 0x10052910
xor ecx, ecx
mov eax, 0x3b9aca00
push ecx
push eax
push ecx
push dword [esi + 0x38]
push ecx
push eax
call fcn.1005b124
mov ecx, eax
add esp, 0x18
mov eax, edx
cmp dword [esp + 0x20], eax
jb 0x1005292c
ja 0x1005291e
cmp dword [esp + 0x1c], ecx
jbe 0x1005292c
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
push 0
push dword [esi + 0x38]
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.1005b124
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 + 0x40]
shl eax, 5
add eax, dword [esi + 0x44]
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
jbe 0x10052ab4
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 0x100529af
push dword [esp + 0x6c]
call fcn.10032849
mov edx, dword [esp + 0x3c]
pop ecx
jmp 0x100529b3
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
test edx, edx
je 0x100529cc
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x3c]
push eax
call fcn.10032849
pop ecx
jmp 0x100529d0
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x100529eb
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x78]
cmove eax, dword [esp + 0x2c]
jmp 0x10052a0a
test dword [esp + 0x14], 0x400
je 0x10052a06
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x40]
push eax
call fcn.10032849
pop ecx
jmp 0x10052a0a
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x44], 0
mov dword [esp + 0x18], eax
je 0x10052a28
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x48]
push eax
call fcn.10032849
pop ecx
mov ecx, eax
jmp 0x10052a2a
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 0x1005299b
push 0
push dword [esi + 0x38]
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.1005b124
mov ebx, dword [esp + 0x7c]
push edx
push eax
push ebx
call fcn.100448c7
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 + 0x258], ecx
mov dword [ebx + 0x25c], eax
mov dword [ebx + 0x264], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x280], edx
mov dword [ebx + 0x284], edi
mov dword [ebx + 0x260], ecx
add dword [esi + 0x40], eax
add dword [esi + 0x50], eax
cmp dword [esi + 0x2c4], 0
je 0x10052b26
and dword [esi + 0x2c4], 0
xor eax, eax
inc eax
jmp 0x10052b2d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret