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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006c0af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov dword [esp + 0x40], edx
mov esi, ecx
push 4
mov dword [esp + 0x68], 0x42c7
lea ecx, [esp + 0x108]
pop edi
mov dword [esp + 0xe0], 0xf8067e3
mov dword [esp + 0xd8], edi
mov dword [esp + 0xc0], 0x441791e6
push 3
call fcn.1000bc50
mov dword [esp + 0x94], 0xbb1300ca
xor ebx, ebx
mov dword [esp + 0xe4], 0x2967684a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
jmp 0x1004680c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x104]
mov dword [eax + ecx*4], 5
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x100467f6
lea eax, [esp + 0xd8]
mov dword [esp + 0x64], 0xfffffff8
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xf8]
call fcn.100386a9
add esp, 0x14
lea ecx, [esp + 0x104]
call fcn.1000bcb2
cmp dword [esi + 0x10], ebx
jne 0x1004686e
xor al, al
jmp 0x1004707a
mov dword [esp + 0x1c], 0xaf43
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x10046885
call fcn.10038788
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x10046894
call fcn.10038799
mov eax, dword [esp + 0x40]
xor ecx, ecx
inc ecx
mov dword [eax], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x10], ebx
jmp 0x100468ba
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x9c], 0x45f1dbec
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x100468a7
mov dword [esp + 0x10], 0xfffffff1
jmp 0x100468e8
mov dword [esp + 0x9c], 0xffffffff
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x100468e4
call fcn.100387a4
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe3
jge 0x100468ca
cmp dword [esi + 0x14], 0x10
jb 0x100468f9
mov ecx, dword [esi]
jmp 0x100468fb
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x48], ecx
jb 0x10046909
mov edx, dword [esi]
jmp 0x1004690b
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x10046d2d
mov al, byte [ecx]
cmp al, 0x30
jl 0x10046946
cmp al, 0x39
jg 0x10046946
push 0x7c3f
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x48]
push eax
push ebx
push 0x791e
call fcn.100470cd
mov ecx, dword [esp + 0x5c]
add esp, 0x14
inc ecx
jmp 0x100468fb
push 9
pop ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x10b999fb
mov dword [esp + 0x18], 0xfffffffb
mov dword [esp + 0x10], 0x5f88e10e
mov dword [esp + 0x18], ebx
mov dword [esp + 0x18], 0xd69b45c
mov dword [esp + 0x18], ebx
jmp 0x1004698a
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xf4], 0x8c7f
inc dword [esp + 0x18]
cmp dword [esp + 0x18], edi
jl 0x10046977
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xfc]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
dec eax
neg eax
sbb eax, eax
add eax, 0xfff9
cmp ecx, eax
mov eax, dword [esp + 0x10]
sbb edx, edx
neg edx
add edx, ecx
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0xfc]
setg cl
xor edx, edx
cmp ecx, 0x63090707
setle dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xfc], ebx
je 0x100469f9
mov eax, dword [esp + 0xfc]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x18]
imul ecx, eax
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
mov dword [esp + 0x1c], 0x2263
cmp dword [esp + 0x1c], 0x84f
jge 0x10046b7e
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x40]
push eax
push 0x10009dac
call fcn.10050bab
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x50]
push eax
push 0x10009aec
call fcn.10050bab
add esp, 0x1c
mov dword [esp + 0xc4], ebx
lea eax, [esp + 0xc4]
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push eax
push ebx
call fcn.1000eb65
mov esi, ebx
mov dword [esp + 0x88], esi
mov dword [esp + 0x11c], ebx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jle 0x10046b2a
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x6c], ecx
jge 0x10046aef
cmp eax, edx
jg 0x10046aef
lea eax, [esp + 0x27]
mov byte [esp + 0x27], bl
push eax
lea ecx, [esp + 0x80]
call fcn.1004a08a
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x3c]
jmp 0x10046b15
lea eax, [esp + 0x26]
mov byte [esp + 0x26], 1
push eax
lea ecx, [esp + 0x80]
call fcn.1004a08a
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x58]
sub eax, edx
mov dword [esp + 0x38], eax
test ecx, ecx
jg 0x10046abf
mov esi, dword [esp + 0x88]
push esi
push 0x100099ec
call fcn.10050dc6
mov edi, ebx
pop ecx
pop ecx
test esi, esi
je 0x10046b6e
mov ebx, dword [esp + 0x7c]
xor eax, eax
mov edx, edi
inc eax
shr edx, 5
mov ecx, edi
and ecx, 0x1f
shl eax, cl
mov ecx, 0x1000a130
test dword [ebx + edx*4], eax
mov eax, 0x1000a128
cmove eax, ecx
push eax
call fcn.10050f86
inc edi
pop ecx
cmp edi, esi
jb 0x10046b41
xor ebx, ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.1000bcb2
mov dword [esp + 0x10], 0xd5e48d32
xor ecx, ecx
mov dword [esp + 0x18], 0x91cb4e76
inc ecx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x10046bb2
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x8c], 0x66c1932e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x10046b9f
mov dword [esp + 0x10], 0xffffffea
cmp dword [esp + 0x10], 0xffffffe9
jg 0x10046cf5
mov ebx, 0x100099e8
mov dword [esp + 0x2c], ecx
xor edx, edx
mov eax, dword [esp + 0x18]
mov ecx, 0x30cc2fdc
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
sub ecx, eax
cmp ecx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
setle dl
add ecx, edx
xor edx, edx
cmp ecx, eax
setge dl
neg edx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add eax, 0xc8fc558b
add ecx, eax
je 0x10046ca7
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
je 0x10046c30
call fcn.100465c4
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
je 0x10046ce1
mov dword [esp + 0x1c], 0x15b3
cmp dword [esp + 0x1c], 0x858
jge 0x10046ca0
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.10050bab
pop ecx
xor edi, edi
xor esi, esi
and dword [esp + 0x6c], edi
pop ecx
mov ecx, dword [esp + 0x60]
test ecx, ecx
jle 0x10046c89
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.10050bab
add edi, dword [esp + 0x70]
inc esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x60]
cmp esi, ecx
jl 0x10046c6f
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x10046c93
dec ecx
push ecx
push 0x100099ec
call fcn.10050dc6
pop ecx
pop ecx
call fcn.100465cd
jmp 0x10046ce1
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.100465e2
mov dword [esp + 0x18], 0
jmp 0x10046cda
mov dword [esp + 0x44], 0xfffffffb
mov eax, dword [esp + 0x44]
mov dword [esp + 0x8c], eax
call fcn.100465e7
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x2e
jle 0x10046cbe
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe9
push 1
pop ecx
jle 0x10046bd0
xor ebx, ebx
mov dword [esp + 0x18], 0x16
jmp 0x10046d21
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ebx
jne 0x10046867
mov byte [esp + 0x25], bl
lea ecx, [esp + 0x25]
call fcn.10046608
inc dword [esp + 0x18]
push 1
pop ecx
cmp dword [esp + 0x18], 0x26
jl 0x10046cff
jmp 0x10046867
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0xc8]
mov dword [esp + 0x4c], 0xfffffff7
mov dword [esp + 0xb4], 0x7e4fc228
mov dword [esp + 0xac], 7
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
push edi
call fcn.1000bc50
push edi
lea ecx, [esp + 0xec]
mov dword [esp + 0x120], 1
call fcn.1000bc50
mov byte [esp + 0x11c], 2
lea edx, [esp + 0xc8]
mov dword [esp + 0x30], 8
lea ecx, [esp + 0x28]
mov dword [esp + 0xd4], 3
call fcn.10046616
mov dword [esp + 0x28], ebx
jmp 0x10046dc7
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xe8]
mov dword [eax + ecx*4], 0x5b1b
inc dword [esp + 0x28]
cmp dword [esp + 0x28], edi
jl 0x10046db1
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0xcc]
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x3c]
call fcn.10046635
add esp, 0x1c
mov dword [esp + 0x30], ebx
jmp 0x10047054
mov dword [esp + 0xa8], 0x50d5
mov dword [esp + 0xa0], 0xbc3393a3
mov dword [esp + 0xb0], 0x6030033
mov dword [esp + 0xb8], 9
mov dword [esp + 0x10], ebx
jmp 0x10047005
xor eax, eax
mov dword [esp + 0x54], 0xf7cd3e5c
inc eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x20], 3
cmp dword [esp + 0x20], ebx
jl 0x10046fe9
mov dword [esp + 0x1c], 0x208c
cmp dword [esp + 0x1c], 0xb84
jge 0x10046fc4
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x54]
push eax
push 0x10009b9c
call fcn.10050bab
mov edi, ebx
mov dword [esp + 0x84], ebx
mov esi, ebx
mov dword [esp + 0x7c], edi
add esp, 0xc
mov dword [esp + 0x74], esi
mov byte [esp + 0x11c], 3
cmp dword [esp + 0x50], 0
mov dword [esp + 0x1c], ebx
jle 0x10046f68
mov esi, 0x100099e8
lea eax, [esp + 0x34]
push eax
push esi
call fcn.10050bab
mov eax, dword [esp + 0x3c]
pop ecx
pop ecx
xor cl, cl
mov dword [esp + 0x18], ecx
test eax, eax
je 0x10046f2d
mov ebx, ecx
dec eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0xdc]
push eax
push esi
call fcn.10050bab
mov eax, dword [esp + 0xe4]
cmp eax, dword [esp + 0xc4]
pop ecx
pop ecx
push 1
pop eax
movzx ebx, bl
cmovl ebx, eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10046eed
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x34], eax
test cl, cl
je 0x10046f51
lea eax, [ebx + 1]
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0x90]
push eax
call fcn.1002e4af
inc ebx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x50]
jl 0x10046ed0
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
sub esi, edi
sar esi, 2
push esi
push 0x100099ec
call fcn.10050dc6
pop ecx
xor ebx, ebx
pop ecx
test esi, esi
je 0x10046f94
push dword [edi + ebx*4]
push 0x100099f4
call fcn.10050dc6
inc ebx
pop ecx
pop ecx
cmp ebx, esi
jb 0x10046f80
push 0x10009955
call fcn.10050f86
mov byte [esp + 0x120], 2
pop ecx
test edi, edi
je 0x10046fc2
push edi
call fcn.10050f37
xor ebx, ebx
pop ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
jmp 0x10046fc4
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
cmp dword [esp + 0x54], ebx
jne 0x10046fe9
dec dword [esp + 0x20]
jns 0x10046e71
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x9c]
call fcn.100466d1
add esp, 4
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffed
jg 0x10046e4d
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xc4]
push eax
lea edx, [esp + 0xe0]
lea ecx, [esp + 0xd0]
call fcn.100466e3
add esp, 0x18
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 0x35
jne 0x10046e18
lea ecx, [esp + 0xe8]
call fcn.1000bcb2
lea ecx, [esp + 0xc8]
call fcn.1000bcb2
xor eax, eax
inc eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret