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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10075504
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
mov dword [esp + 0x30], edx
push esi
mov dword [esp + 0x20], 0x603fa75c
push edi
mov dword [esp + 0x1c], 0xfb37b048
mov edi, ecx
mov dword [esp + 0x18], 0x83d78398
lea ecx, [esp + 0xbc]
mov dword [esp + 0x28], 0xfffffff7
mov dword [esp + 0x20], 0xfffffffe
push 1
mov dword [esp + 0x40], edi
call fcn.1002fcd7
xor ebx, ebx
lea edx, [esp + 0xbc]
mov dword [esp + 0x13c], ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0xfc3e8ce6
call fcn.1004dbda
mov dword [esp + 0x34], ebx
jmp 0x1004e7e7
mov eax, dword [esp + 0x34]
mov dword [esp + eax*4 + 0x60], 0xdb785b64
inc dword [esp + 0x34]
cmp dword [esp + 0x34], 1
jl 0x1004e7d7
cmp dword [esp + 0x1c], ebx
je 0x1004e808
dec dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
dec dword [esp + 0x24]
xor edx, edx
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xbc]
cmp ecx, dword [eax]
lea ecx, [esp + 0xbc]
setl dl
mov dword [esp + 0x18], edx
or dword [esp + 0x13c], 0xffffffff
call fcn.100302f8
cmp dword [edi + 0x10], ebx
jne 0x1004e84a
xor al, al
jmp 0x1004f1c0
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
mov dword [esp + 0x18], 0x4081c290
mov dword [esp + 0x14], 0xa10aa43b
mov dword [esp + 0x20], 0xe1b1b552
mov dword [esp + 0x1c], ebx
jmp 0x1004e87d
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x124], ebx
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jl 0x1004e86e
mov dword [esp + 0x18], ebx
jmp 0x1004e8d6
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0x124]
mov dword [esp + 0x14], 1
cmp dword [esp + 0x18], 0xfffe
mov ecx, dword [esp + 0x14]
sbb eax, eax
neg eax
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov eax, dword [esp + 0x14]
cmp eax, 0x74c3
setl cl
mov dword [esp + 0x20], ecx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jle 0x1004e88a
cmp dword [edi + 0x14], 0x10
jb 0x1004e8e7
mov esi, dword [edi]
jmp 0x1004e8e9
mov esi, edi
cmp dword [edi + 0x14], 0x10
push 6
pop edx
jb 0x1004e8f6
mov ecx, dword [edi]
jmp 0x1004e8f8
mov ecx, edi
mov eax, dword [edi + 0x10]
add eax, ecx
cmp esi, eax
je 0x1004f061
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0x7b445ace
mov dword [esp + 0x24], 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x1004e93a
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x118], 4
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1004e927
mov dword [esp + 0x10], ebx
jmp 0x1004e95a
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x90], 0xf2d6273d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1004e947
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, 0xffff
mov eax, dword [esp + 0x18]
setne cl
xor edx, edx
cmp ecx, eax
setne dl
mov dword [esp + 0x120], edx
mov eax, dword [esp + 0x18]
imul eax, edx
xor edx, edx
imul ecx, eax, 0xffff
mov eax, dword [esp + 0x14]
cmp ecx, eax
mov eax, 0xe57bf5cd
setne dl
sub eax, edx
sub eax, dword [esp + 0x14]
imul eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x1004e9c1
cmp dword [esp + 0x20], ebx
jne 0x1004e9c1
mov eax, ebx
jmp 0x1004e9c4
xor eax, eax
inc eax
mov dword [esp + 0x24], eax
dec dword [esp + 0x90]
mov al, byte [esi]
cmp al, 0x30
jl 0x1004ebfb
cmp al, 0x39
jg 0x1004ebfb
mov dword [esp + 0x10], 0x730f94f3
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0xd42ca8cd
mov dword [esp + 0x1c], ebx
jmp 0x1004ea0f
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x48], 0xec2e0cf5
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jl 0x1004e9ff
push 2
pop ecx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], ebx
jl 0x1004ea77
mov dword [esp + 0x24], 0xfffffffb
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], ebx
jl 0x1004ea67
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x24]
mov dword [esp + eax*4 + 0x48], edx
mov eax, dword [esp + 0x10]
neg eax
cmp edx, eax
setl cl
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
dec dword [esp + 0x24]
jns 0x1004ea35
push 2
pop ecx
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x48], ebx
jne 0x1004ea77
dec dword [esp + 0x10]
jns 0x1004ea23
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], ebx
jl 0x1004ebe4
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ebx
jmp 0x1004ebcc
mov dword [esp + 0x14], 0xc620
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ebx
jl 0x1004ebc2
mov dword [esp + 0x20], 1
mov dword [esp + 0x20], 0x1e72
cmp dword [esp + 0x20], 0x103d
jge 0x1004eb33
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xa4]
push eax
push 0x10007810
call fcn.1005cf7b
mov ecx, dword [esp + 0xac]
add esp, 0xc
mov eax, dword [esp + 0xa4]
sub ecx, 1
sbb eax, ebx
push eax
push ecx
call fcn.1004e6d2
push dword [esp + 0xa4]
mov edi, eax
mov dword [esp + 0x2c], edx
push dword [esp + 0xa4]
call fcn.1004e6d2
sub eax, edi
sbb edx, dword [esp + 0x30]
push edx
push eax
push 0x1000774c
call fcn.1005d3c8
add esp, 0x1c
mov dword [esp + 0x20], 1
xor edx, edx
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp ecx, eax
setl dl
xor eax, eax
cmp edx, 0xc65a
setle al
cmp dword [esp + 0x20], eax
jg 0x1004eb63
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
cmp eax, 0x705be734
setne cl
dec ecx
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x48]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x48], edx
mov eax, dword [esp + 0x14]
cmp edx, eax
setl cl
mov dword [esp + 0x20], ecx
dec dword [esp + 0x1c]
jns 0x1004eab4
push 2
pop ecx
cmp dword [esp + 0x14], ebx
jne 0x1004ebd6
inc dword [esp + 0x18]
cmp dword [esp + 0x18], ecx
jle 0x1004ea9e
dec dword [esp + 0x10]
jns 0x1004ea85
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
movsx eax, byte [esi]
imul ecx, dword [edx], 0xa
add ecx, 0xffffffd0
add eax, ecx
inc esi
mov dword [edx], eax
jmp 0x1004e8e9
push 1
lea ecx, [esp + 0x58]
call fcn.1002fcd7
xor edx, edx
inc edx
mov dword [esp + 0x13c], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x64], 0x2f7f1c74
push 9
pop eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x20], 0x950c43ca
mov dword [esp + 0x20], 0x91c1aad5
mov dword [esp + 0x28], 0x4c643a56
mov dword [esp + 0x20], 0x4e22dd2e
mov dword [esp + 0x10], ebx
jmp 0x1004ec7c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x97f6af11
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1004ec69
mov dword [esp + 0x10], ebx
jmp 0x1004ec97
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xf8], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1004ec88
mov eax, dword [esp + 0x54]
mov dword [eax], 0xa
mov dword [esp + 0x10], 0x3fa75c19
lea ecx, [esp + 0xd4]
push 2
call fcn.1002fcd7
mov byte [esp + 0x13c], 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], 0xfffffff9
mov dword [esp + 0x18], 0xa5b7dff9
mov dword [esp + 0x24], 0x4351d5e8
push 1
call fcn.1002fcd7
lea edx, [esp + 0xd4]
mov byte [esp + 0x13c], 3
lea ecx, [esp + 0x30]
call fcn.1004dd0d
mov dword [esp + 0x30], ebx
jmp 0x1004ed1a
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
mov dword [eax + ecx*4], 0xcc5db095
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 1
jl 0x1004ed07
mov dword [esp + 0x10], ebx
jmp 0x1004edfd
push dword [esp + 0x44]
movdqa xmm0, xmmword [0x10007f70]
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x110]
mov dword [esp + 0x70], ebx
push eax
push ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x7c], ebx
movdqu xmmword [esp + 0x118], xmm0
mov dword [esp + 0x80], ebx
call fcn.10035844
mov dword [esp + 0x14], ebx
jmp 0x1004ed81
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf0], 0xfff8
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x1004ed6e
mov esi, dword [esp + 0x68]
xor ecx, ecx
inc ecx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], ebx
jl 0x1004edcb
mov dword [esp + 0x1c], 0xc312fbb6
mov dword [esp + 0x1c], ebx
jmp 0x1004edbf
mov eax, dword [esp + 0x1c]
cmp dword [esp + eax*4 + 0xf0], ebx
jne 0x1004edc5
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], ecx
jle 0x1004edae
dec dword [esp + 0x14]
jns 0x1004eda0
inc dword [esi + 0xc]
cmp dword [esi + 0xc], ecx
jle 0x1004ed92
mov edi, ebx
cmp dword [esp + 0x10], ebx
je 0x1004eddd
mov edi, ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x68]
xor edx, edx
cmp edi, eax
setle dl
neg edx
sbb edx, edx
inc edx
mov dword [esi + 0xc], edx
call fcn.100302f8
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffef
jg 0x1004ed2a
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov edi, dword [esp + 0xd4]
push 6
mov edx, dword [eax]
mov eax, dword [esp + 0x8c]
cmp eax, edx
setg cl
xor eax, eax
cmp ecx, edx
mov ecx, 0xfff7
setge al
sub eax, dword [edi + 4]
neg eax
sbb eax, eax
inc eax
cmp ecx, eax
mov eax, dword [esp + 0x14]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp ecx, eax
setge dl
sub edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
add edx, 0xfffffffd
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setg cl
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
imul eax, dword [edi + 4]
pop ecx
mov dword [esp + 0x20], eax
dec dword [esp + 0x24]
mov eax, dword [esp + 0x74]
cmp ecx, dword [eax]
sbb ecx, ecx
neg ecx
sub ecx, dword [eax]
mov eax, dword [esp + 0x54]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
add ecx, dword [eax]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x24]
sete dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
setge cl
sub esi, ecx
xor ecx, ecx
sub esi, dword [eax]
mov eax, dword [esp + 0x104]
imul edx, esi
cmp eax, edx
setle cl
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov eax, dword [esp + 0x10]
dec eax
cmp dword [edi + 4], eax
setne cl
xor edx, edx
cmp ecx, 0x249d
setge dl
xor eax, eax
cmp edx, 1
setle al
cmp eax, 0x95200cc9
sbb eax, eax
inc eax
neg eax
jne 0x1004eeff
mov eax, dword [esp + 0x104]
mov eax, dword [edi + 4]
add eax, 3
jne 0x1004ef11
cmp dword [esp + 0x28], ebx
jne 0x1004ef11
mov ecx, ebx
jmp 0x1004ef14
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x84]
sub ecx, eax
jne 0x1004ef2b
mov eax, dword [esp + 0x74]
cmp dword [eax], ebx
jne 0x1004ef2b
mov eax, ebx
jmp 0x1004ef2e
xor eax, eax
inc eax
mov dword [esp + 0x20], eax
xor edx, edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x8c]
cmp ecx, eax
mov eax, dword [esp + 0x18]
setg dl
xor ecx, ecx
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 4]
mov eax, 0x1f67
setl cl
sub eax, ecx
jne 0x1004ef6d
cmp dword [esp + 0x18], ebx
jne 0x1004ef6d
mov eax, ebx
jmp 0x1004ef70
xor eax, eax
inc eax
lea ecx, [esp + 0x74]
mov dword [esp + 0xf8], eax
call fcn.100302f8
lea ecx, [esp + 0xd4]
mov byte [esp + 0x13c], 1
call fcn.100302f8
mov eax, dword [esp + 0x54]
inc dword [eax]
cmp dword [eax], 0xe
jl 0x1004eca8
or dword [esp + 0x13c], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.100302f8
push 0x2555
push 0x5dbe
lea eax, [esp + 0x40]
push eax
push 0x6eca
push ebx
call fcn.10050647
mov dword [esp + 0x24], 0x7e2799ac
add esp, 0x14
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 0xbb66efe0
mov dword [esp + 0x10], ebx
jmp 0x1004f055
mov dword [esp + 0x1c], 0x69576881
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], eax
jge 0x1004f00d
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 1
setg cl
imul ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x1c]
jl 0x1004f030
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
neg ecx
add eax, ecx
lea ecx, [esp + 0x2f]
mov dword [esp + 0x28], eax
mov byte [esp + 0x2f], bl
call fcn.1004e02c
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xe
jle 0x1004efef
jmp 0x1004e843
mov eax, 0x61928c17
lea ecx, [esp + 0xc8]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x18], 0x3aa9ac70
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], 0xc657e3b6
mov dword [esp + 0x28], 4
push 3
call fcn.1002fcd7
mov dword [esp + 0x13c], 4
mov dword [esp + 0x28], 0xb2ec6f0d
mov dword [esp + 0x28], 0xffffffff
push 3
mov dword [esp + 0x48], 0xfffffff7
mov dword [esp + 0x18], ebx
pop edx
jmp 0x1004f0ee
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc8]
mov dword [eax + ecx*4], 0x3e91cb64
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edx
jl 0x1004f0d8
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], ebx
jl 0x1004f1a9
mov esi, dword [esp + 0xc8]
push 1
lea ecx, [esp + 0xe4]
call fcn.1002fcd7
mov byte [esp + 0x13c], 5
lea edx, [esp + 0xe0]
mov dword [esp + 0x24], 0x65786371
lea ecx, [esp + 0xec]
mov dword [esp + 0x28], 0xabf7c2f5
mov dword [esp + 0x14], 0x9867
call fcn.1004e52e
dec dword [esp + 0x14]
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0xac]
mov eax, dword [esp + 0x24]
inc dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0xac]
cmp eax, 1
mov byte [esp + 0x13c], 4
setg cl
mov dword [esi + 4], ecx
lea ecx, [esp + 0xe0]
call fcn.100302f8
dec dword [esp + 0x18]
jns 0x1004f109
lea ecx, [esp + 0x44]
call fcn.1004e6cf
lea ecx, [esp + 0xc8]
call fcn.100302f8
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret