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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
test byte [eax + 0x21], 0x40
je 0x10054b2a
cmp byte [edx + 0x2b], 0
jne 0x10054b2a
mov dword [ebp - 0x2c], edx
mov ecx, dword [edx + 0x3c]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x10]
test ecx, ecx
je 0x1005498f
lea edx, [eax + 0xc]
xor ebx, ebx
dec ebx
inc ebx
lea esi, [edx + 0x10]
cmp dword [edx], ecx
mov edx, esi
jne 0x10054689
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + 0x9f]
mov byte [ebp - 0x2d], dl
mov edx, dword [ebp - 0x2c]
mov edi, dword [edx + 0x30]
test edi, edi
jne 0x1005478e
mov edx, dword [edx]
add ecx, 0x38
call fcn.10159090
mov edi, dword [eax + 8]
test edi, edi
je 0x10054b2a
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x14]
jne 0x10054771
jmp 0x100549a6
test cx, cx
jle 0x10054755
mov eax, dword [ebp - 0x24]
mov eax, dword [edi + eax*8 + 0x28]
mov dword [ebp - 0x28], eax
xor eax, eax
mov edx, dword [ebp + 0x10]
cmp dword [edx + eax*4], 0
jns 0x1005470f
test ebx, ebx
je 0x10054708
mov edx, dword [ebp - 0x2c]
movsx edx, word [edx + 0x20]
cmp eax, edx
je 0x1005470f
inc eax
cmp eax, ecx
jne 0x100546f0
jmp 0x10054755
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
cmp dword [ebp - 0x28], 0
je 0x1005497d
mov esi, eax
shl esi, 4
mov edx, dword [edx + esi]
xor esi, esi
mov dword [ebp - 0x34], edx
movzx edx, byte [edx + esi]
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx + esi]
cmp dl, bl
je 0x10054999
mov dl, byte [edx + 0x101b1828]
cmp dl, byte [ebx + 0x101b1828]
mov ebx, dword [ebp + 0x14]
jne 0x10054708
jmp 0x1005499d
mov esi, dword [ebp - 0x24]
inc esi
mov edx, dword [ebp - 0x3c]
mov eax, esi
mov dword [ebp - 0x24], esi
cmp esi, edx
jne 0x100546df
mov edi, dword [edi + 0xc]
jmp 0x100546bd
mov edx, dword [edi + 0x14]
test edx, edx
jle 0x10054769
mov eax, dword [ebp - 0x2c]
movsx ecx, word [eax + 0x22]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], edx
jmp 0x100546df
mov ecx, ebx
shl ecx, 4
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + ecx]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edi
mov edi, dword [edi + 8]
cmp dword [ebp + 0x10], 0
je 0x1005480b
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
test esi, esi
je 0x10054c3f
test edi, edi
je 0x100547e4
xor edx, edx
movzx eax, byte [esi + edx]
movzx ecx, byte [edi + edx]
cmp al, cl
jne 0x100547d6
test eax, eax
je 0x10054808
inc edx
jmp 0x100547c3
mov al, byte [eax + 0x101b1828]
cmp al, byte [ecx + 0x101b1828]
je 0x100547d3
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x10054b0c
xor edx, edx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edx*8 + 0x24]
mov esi, dword [ebp + 0x10]
cmp dword [esi + eax*4], 0
js 0x10054c4e
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + 0x9f], 0
jne 0x10054b8f
xor edx, edx
push dword [ebp - 0x44]
push edi
call fcn.10038b60
add esp, 8
mov edx, eax
test eax, eax
mov edi, dword [ebp - 0x28]
je 0x10054a71
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10057590
mov edx, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
jne 0x10054a71
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x1005486b
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], 0
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x3c], ecx
jle 0x100548b9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea eax, [edx + 0x20]
mov dword [ebp - 0x48], eax
xor edi, edi
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x2c]
movsx eax, word [eax + 0x20]
cmp dword [ecx + edi*4], eax
je 0x10054ba4
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x164], 0
jne 0x10054bb0
inc edi
mov eax, dword [ebp - 0x28]
cmp edi, dword [eax + 0x14]
jl 0x10054890
mov edi, esi
cmp ebx, 1
mov esi, dword [ebp - 0x20]
je 0x100548d9
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
jne 0x10054bfe
inc dword [esi + 0x28]
cmp dword [ebp + 8], 0
jne 0x10054934
mov esi, edi
test edi, edi
mov edi, dword [ebp - 0x28]
je 0x1005491d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x78]
test eax, eax
cmove eax, ecx
mov eax, dword [eax + 0x80]
test eax, eax
jne 0x1005495a
mov ecx, dword [ebp - 0x20]
mov eax, edx
mov edx, ebx
push dword [ebp - 0x34]
push 1
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x14]
push eax
call fcn.100622d0
add esp, 0x1c
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x10054c1f
mov edi, dword [edi + 4]
test edi, edi
je 0x10054972
jmp 0x1005479c
mov ecx, dword [ebp - 0x20]
mov edx, ebx
push dword [ebp - 0x34]
push 0xffffffffffffffff
push dword [ebp + 8]
push dword [ebp - 0x3c]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.100622d0
mov edx, dword [ebp - 0x24]
add esp, 0x1c
jmp 0x100548e2
mov eax, dword [eax]
cmp eax, dword [edi + 0x1c]
je 0x10054c8a
cmp eax, dword [edi + 0x20]
jne 0x10054900
cmp byte [edi + 0x1a], 8
jne 0x10054900
jmp 0x1005491d
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x3c]
jmp 0x100546b0
mov esi, eax
shl esi, 4
test byte [edx + esi + 0xe], 1
je 0x10054708
jmp 0x100549a6
mov ebx, 0xffff8000
jmp 0x10054693
test edx, edx
je 0x100549a6
inc esi
mov edx, dword [ebp - 0x34]
jmp 0x1005472c
cmp byte [edi + 0x18], 0
jne 0x100549cb
mov eax, dword [ebp - 0x38]
test byte [eax + 0x22], 8
jne 0x100549cb
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x78], 0
jne 0x100549cb
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x14], 0
je 0x10054769
mov esi, dword [ebp - 0x20]
mov ecx, esi
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10057590
add esp, 0xc
test eax, eax
jne 0x10054b17
mov ecx, esi
xor edx, edx
xor eax, eax
push eax
push eax
call fcn.10021c00
add esp, 8
test eax, eax
mov esi, dword [ebp + 0xc]
je 0x10054a59
mov ebx, eax
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
mov ecx, dword [edi]
mov ecx, dword [ecx]
mov dword [ebx + 0x10], ecx
inc dword [eax + 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x28]
lea edx, [eax + 1]
mov dword [ecx + 0x28], edx
mov dword [ebx + 0x34], eax
test esi, esi
je 0x10054a3e
mov edx, ebx
push 0xffffffffffffffff
push esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.1005e490
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x10054b3c
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp - 0x38]
mov edx, ebx
call fcn.10021750
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x10054769
mov ecx, dword [ebp - 0x38]
call fcn.10129dd0
jmp 0x10054769
cmp byte [ebp - 0x2d], 0
je 0x10054b2a
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 0x57]
test edx, edx
jne 0x10054c2c
test al, al
jne 0x10054c2c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10054c71
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x10054af0
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x6c]
add eax, ecx
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov esi, dword [ebp - 0x28]
movsx edx, word [esi + edi*8 + 0x24]
mov ecx, dword [esi]
call fcn.10159380
cwde
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov edx, 0x32
push 0
push dword [ebp - 0x34]
push eax
call fcn.10030110
add esp, 0xc
inc edi
cmp edi, dword [esi + 0x14]
jl 0x10054ac1
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, 0x9e
push 0
push 0xffffffffffffffff
push eax
call fcn.10030110
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x28]
jmp 0x10054928
cmp byte [ebp - 0x2d], 0
je 0x10054b2a
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0x57], 0
je 0x10054769
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 1
mov eax, edi
sbb eax, 0xffffffff
movzx esi, byte [eax + 0x19]
mov ecx, dword [ebp - 0x20]
mov edx, ebx
push 1
push dword [ebp + 8]
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.1005e490
add esp, 0x18
cmp byte [edi + 0x18], 0
jne 0x10054a48
or esi, 2
cmp esi, 0xa
je 0x10054a48
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x78]
test eax, eax
cmove eax, ecx
mov byte [eax + 0x15], 1
jmp 0x10054a48
mov ecx, dword [ebp - 0x38]
mov edx, edi
push dword [ebp - 0x44]
call fcn.10152030
add esp, 4
jmp 0x10054829
mov dword [ecx + edi*4], 0xffffffff
jmp 0x100548a0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x40], 0
je 0x10054bc2
lea eax, [edi + edi]
mov ecx, dword [ebp - 0x40]
add eax, dword [ecx + 4]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x34], ecx
movsx eax, word [eax]
shl eax, 4
mov edx, dword [edx]
mov ecx, dword [ebp - 0x20]
push ebx
mov esi, dword [ebp - 0x34]
push dword [esi + eax]
call fcn.10171900
mov edx, dword [ebp - 0x24]
add esp, 8
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
jmp 0x100548b0
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x24]
push dword [eax]
push 0
mov eax, dword [ebp - 0x24]
push dword [eax + 0x14]
call fcn.10046c10
mov edx, dword [ebp - 0x24]
add esp, 0xc
jmp 0x100548d9
mov ecx, dword [ebp - 0x38]
call fcn.10129dd0
jmp 0x10054928
test al, al
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x28]
je 0x10054928
jmp 0x10054b2a
test edi, edi
jne 0x100547e4
xor edi, edi
jmp 0x10054808
cmp dword [ebp + 0x14], 0
je 0x10054c63
mov esi, dword [ebp - 0x2c]
movsx esi, word [esi + 0x20]
cmp eax, esi
je 0x10054808
inc edx
cmp ecx, edx
jne 0x100547f4
jmp 0x10054b0c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x78], 0
je 0x10054c99
mov ecx, dword [ebp - 0x20]
call fcn.1002fa90
mov dword [ebp - 0x24], eax
jmp 0x10054aa2
cmp byte [edi + 0x19], 8
je 0x1005491d
jmp 0x10054965
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test byte [eax + 0x50], 8
jne 0x10054c7a
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x17], 1
jmp 0x10054c7a