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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
push edi
test eax, eax
je 0x10046e73
push eax
call dword [0x100ef230]
add esp, 4
mov edi, dword [esi + 0x18]
call fcn.1003d880
mov eax, dword [esi]
test eax, eax
je 0x10046e92
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10046e92
push eax
call dword [0x100ef230]
add esp, 4
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x10046ea7
cmp ebx, 5
je 0x10046ea7
cmp ebx, 6
jne 0x100475df
cmp dword [esi], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0
je 0x10046edf
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x10046edf
mov ebx, 5
jmp 0x100470a4
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x10046f13
push 2
push ecx
call fcn.1003fee0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100470a4
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
push ecx
push 1
mov dword [esi + 0xc], 1
call fcn.10045600
add esp, 8
mov edi, dword [esi + 0x18]
cmp byte [edi + 8], 0
jne 0x100470a4
mov esi, dword [edi + 4]
xor ebx, ebx
mov dword [esp + 0x10], ebx
call fcn.1003d880
mov al, byte [edi + 8]
cmp al, 2
je 0x10047071
cmp al, 1
je 0x10047071
movzx edx, word [esi + 0x16]
test dl, 0x40
je 0x10046f5e
mov eax, dword [esi + 0x4c]
cmp dword [eax], ebx
je 0x10046f5e
mov dword [esp + 0x10], 0x106
jmp 0x10047071
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x10046fa5
cmp dword [eax + 0x4c], edi
je 0x10046f7f
test byte [eax + 0x16], 0x20
je 0x10046f7f
mov dword [esp + 0x10], 0x106
jmp 0x10047071
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x10046fa5
mov ecx, 1
jmp 0x10046f90
cmp dword [eax], edi
je 0x10046f9e
cmp dword [eax + 4], ecx
jne 0x10046f9e
cmp byte [eax + 8], cl
jne 0x10046f51
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x10046f90
mov eax, edx
and eax, 0xfff7
mov dword [esp + 0x10], ebx
mov word [esi + 0x16], ax
cmp dword [esi + 0x2c], ebx
jne 0x10046fc0
or eax, 8
mov word [esi + 0x16], ax
cmp dword [esi + 0xc], 0
jne 0x10046fd7
mov ebx, esi
call fcn.1003faf0
mov dword [esp + 0x10], eax
test eax, eax
je 0x10046fc0
jmp 0x10046fde
cmp dword [esp + 0x10], 0
je 0x10046ffe
cmp byte [esi + 0x14], 0
jne 0x10046ffe
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10046ffe
mov ecx, dword [eax + 0x44]
push ecx
call fcn.1003a220
add esp, 4
mov dword [esi + 0xc], 0
cmp byte [esp + 0x10], 5
jne 0x1004703d
cmp byte [esi + 0x14], 0
jne 0x1004703d
mov ebx, dword [esi + 4]
add ebx, 0x1bc
je 0x1004703d
mov ecx, dword [ebx]
test ecx, ecx
je 0x1004703d
mov eax, dword [ebx + 8]
test eax, eax
jl 0x1004703d
mov edx, dword [ebx + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x10047036
inc dword [ebx + 8]
jmp 0x10046fc0
mov dword [ebx + 8], 0xffffffff
cmp dword [esp + 0x10], 0
jne 0x10047071
cmp byte [edi + 8], 0
jne 0x10047063
inc dword [esi + 0x28]
cmp byte [edi + 9], 0
je 0x10047063
mov byte [edi + 0x24], 1
mov eax, dword [esi + 0x48]
lea ecx, [edi + 0x1c]
mov dword [edi + 0x28], eax
mov dword [esi + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [esi + 0x14], 1
jae 0x10047071
mov byte [esi + 0x14], 1
cmp byte [edi + 9], 0
je 0x10047095
add dword [edi + 0xc], 0xffffffff
jne 0x10047095
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10047091
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], eax
test ebx, ebx
jne 0x100470d8
cmp eax, 5
jne 0x100470d8
cmp edx, edi
je 0x100470d8
lea ebx, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x100470f4
cmp dword [esp + 0x2c], eax
jge 0x10047162
mov edi, dword [esi + 0x10]
cmp edi, dword [esp + 0x10]
ja 0x10047162
test ebx, ebx
jne 0x100471a4
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x100ef2e0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x10047154
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push edi
lea ecx, [ebx + 2]
call fcn.10039ed0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10047154
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
push ebx
push eax
push edi
push esi
call fcn.10046c90
mov ecx, dword [esp + 0x40]
push ecx
mov ebx, eax
call fcn.1003a220
add esp, 0x14
mov eax, 1
add dword [esi + 0x10], eax
add dword [esp + 0x2c], eax
jmp 0x100470e7
test ebx, ebx
jne 0x100471a4
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, eax
sub edx, ecx
inc edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edx
cmp ecx, eax
ja 0x100471b1
cmp dword [esi + 0x28], ebx
jne 0x100474e0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [esi + 0x2c], edx
mov dword [eax], esi
mov dword [esi + 0x28], 1
jmp 0x100474e0
cmp ebx, 0x65
jne 0x100474e0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100471d0
mov eax, dword [esi + 4]
call fcn.1003fe90
mov ebx, eax
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x100471d0
cmp ebx, 0x65
jne 0x1004724c
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [edi + 4]
inc ebx
mov dword [esp + 0x30], eax
call fcn.1003d880
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x44]
push eax
mov dword [esp + 0x34], edx
call fcn.1003a600
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10047224
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 0x28], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [eax + 0x29], dl
mov byte [eax + 0x2a], cl
mov byte [eax + 0x2b], bl
cmp byte [edi + 9], 0
je 0x10047248
add dword [edi + 0xc], 0xffffffff
jne 0x10047248
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10047244
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x100474e0
mov eax, dword [esi]
test eax, eax
je 0x1004725f
call fcn.10060ab0
cmp dword [esp + 0x3c], 5
jne 0x1004727e
mov eax, dword [esi + 4]
push 2
push eax
call fcn.100468c0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100474e0
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1c], ecx
jge 0x100472b6
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x100ef2e0]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x100472c6
dec edi
jmp 0x100472c6
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x20]
mov edi, eax
imul edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x1c], edx
jge 0x100476d1
mov eax, dword [esp + 0x1c]
cdq
mov ecx, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
cdq
push ecx
push edx
push eax
call fcn.100c1890
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
nop
cmp edi, dword [esp + 0x3c]
ja 0x10047368
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x100ef2e0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x10047361
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push edi
xor ecx, ecx
call fcn.10039ed0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10047361
mov eax, dword [esp + 0x30]
push eax
call fcn.1003a600
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
mov ebx, eax
call fcn.1003a220
add esp, 4
inc edi
test ebx, ebx
je 0x10047310
jmp 0x1004737d
test ebx, ebx
jne 0x1004737d
mov eax, dword [esp + 0x28]
push 1
push ebx
call fcn.1003a840
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0x20]
mov edi, dword [0x100ef2e0]
mov ecx, dword [esp + 0x14]
lea eax, [edi + edx]
cdq
cmp edx, ecx
jg 0x100473a1
jl 0x1004739b
cmp eax, dword [esp + 0x10]
jae 0x100473a1
mov dword [esp + 0x4c], edx
jmp 0x100473a9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
lea eax, [edi + ecx]
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test ebx, ebx
jne 0x100474e0
jmp 0x100473d0
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jg 0x1004763a
jl 0x100473ee
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x20], eax
jae 0x1004763a
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x44], 0
call fcn.100c1a80
inc eax
push eax
mov eax, dword [esp + 0x3c]
xor ecx, ecx
call fcn.10039ed0
mov esi, dword [esp + 0x38]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1004744e
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebx, eax
test esi, esi
je 0x100474c5
test byte [esi + 0x18], 0x40
mov edi, dword [esi + 0x10]
je 0x100474a3
dec dword [edi + 0x78]
mov ecx, dword [edi + 0x88]
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x88], esi
mov eax, dword [eax]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x14]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100c1890
push edx
push eax
mov eax, dword [edi + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
jmp 0x100474aa
mov eax, esi
call fcn.10035500
cmp dword [edi + 0x78], 0
jne 0x100474c5
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x100474c5
push edi
call fcn.10037830
add esp, 4
mov ecx, dword [esp + 0x40]
add dword [esp + 0x20], ecx
mov edx, dword [esp + 0x44]
adc dword [esp + 0x24], edx
test ebx, ebx
je 0x100473d0
mov esi, dword [ebp + 8]
cmp dword [esp + 0x38], 0
je 0x100475cf
mov eax, dword [esi + 0x18]
push 0
call fcn.10040cc0
mov eax, dword [esi + 0x18]
add esp, 4
cmp byte [eax + 8], 0
mov dword [esp + 0x10], eax
je 0x100475cf
mov edi, eax
call fcn.1003d880
mov eax, edi
cmp byte [eax + 8], 2
jne 0x100475a0
mov ecx, edi
mov ecx, dword [ecx + 4]
mov edi, dword [ecx]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x10047863
cmp byte [edi + 0xf], 2
jne 0x1004782d
cmp byte [edi + 4], al
je 0x1004782d
cmp byte [edi + 5], 1
jne 0x1004782d
mov byte [edi + 0xf], 1
mov edi, dword [ecx + 0x3c]
mov byte [ecx + 0x14], 1
mov dword [esp + 0x3c], edi
test edi, edi
je 0x10047599
cmp dword [edi + 8], 0
je 0x1004758c
add edi, 0xc
mov dword [esp + 0x38], 0x7d
mov ecx, dword [edi]
push ecx
call fcn.10035040
add esp, 4
add edi, 4
sub dword [esp + 0x38], 1
jne 0x10047573
mov edi, dword [esp + 0x3c]
push edi
call fcn.1002e8b0
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx + 0x3c], 0
mov edi, dword [esp + 0x10]
call fcn.10040d70
mov edx, edi
cmp byte [edx + 9], 0
je 0x100475cf
add dword [edi + 0xc], 0xffffffff
jne 0x100475cf
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x100475cb
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
cmp ebx, 0xc0a
jne 0x100475dc
mov ebx, 7
mov dword [esi + 0x1c], ebx
mov eax, dword [esi]
test eax, eax
je 0x100475f6
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100475f6
push eax
call dword [0x100ef238]
add esp, 4
mov edi, dword [esi + 0x18]
cmp byte [edi + 9], 0
je 0x1004761d
add dword [edi + 0xc], 0xffffffff
jne 0x1004761d
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x10047619
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10047631
push eax
call dword [0x100ef238]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x100474dd
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x48]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x10047683
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jl 0x10047683
jg 0x10047672
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x10]
jbe 0x10047683
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call edx
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100474dd
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 7], al
jne 0x100476ae
movzx eax, byte [ecx + 0xb]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
mov esi, dword [ebp + 8]
add esp, 8
jmp 0x100476e4
mov ecx, dword [ecx + 0x3c]
cmp dword [ecx], 0
je 0x100476cc
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 8
push ecx
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x100476cc
xor eax, eax
mov esi, dword [ebp + 8]
jmp 0x100476e4
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.1003a840
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x100474e0
mov edi, dword [esi + 4]
cmp byte [edi + 8], al
je 0x100477ba
call fcn.1003d880
cmp byte [edi + 8], 2
jne 0x10047791
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x10047720
mov ebx, ecx
jmp 0x100477f4
cmp byte [ebx + 0xf], 2
jne 0x100477c4
cmp byte [ebx + 4], 0
je 0x100477c4
cmp byte [ebx + 5], 1
jne 0x100477c4
mov byte [ebx + 0xf], 1
mov ecx, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x1004778a
cmp dword [ecx + 8], 0
je 0x10047779
mov ebx, ecx
add ebx, 0xc
mov dword [esp + 0x34], 0x7d
mov eax, dword [ebx]
push eax
call fcn.10035040
add esp, 4
add ebx, 4
sub dword [esp + 0x34], 1
jne 0x10047764
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1002e8b0
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [eax + 0x3c], 0
call fcn.10040d70
cmp byte [edi + 9], 0
je 0x100477ba
add dword [edi + 0xc], 0xffffffff
jne 0x100477ba
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x100477b6
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, 0x65
jmp 0x100474e0
movzx ecx, byte [ebx + 0x12]
push 1
push ecx
mov eax, ebx
call fcn.10037640
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x100477e7
cmp ecx, 0xa
jne 0x100477ee
mov dword [ebx + 0x28], eax
mov byte [ebx + 0xf], 6
mov ebx, eax
mov eax, dword [esp + 0x2c]
test ebx, ebx
je 0x10047742
cmp byte [edi + 9], 0
je 0x100474e0
add dword [edi + 0xc], 0xffffffff
jne 0x100474e0
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10047824
push eax
call dword [0x100ef238]
add esp, 4
mov byte [edi + 0xa], 0
jmp 0x100474e0
movzx edx, byte [edi + 0x12]
push 1
push edx
mov eax, edi
call fcn.10037640
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10047850
cmp ecx, 0xa
jne 0x10047857
mov dword [edi + 0x28], eax
mov byte [edi + 0xf], 6
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x10047553
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x100475cf
add dword [eax + 0xc], 0xffffffff
jne 0x100475cf
mov ecx, eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10047891
push eax
call dword [0x100ef238]
add esp, 4
mov eax, dword [esp + 0x10]
mov byte [eax + 0xa], 0
jmp 0x100475cf