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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x24c2de0
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor edx, edx
cmp edi, edx
mov esi, ecx
je 0x246d484
cmp dword [esi + 0x20], edx
je 0x246d484
cmp dword [esi + 0x1c], edx
je 0x246d484
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x74]
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x10]
sub ecx, ebp
add edx, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
add eax, ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], eax
call fcn.024074f0
test eax, eax
je 0x246d6e3
mov eax, dword [esi + 4]
dec eax
je 0x246d6fd
dec eax
je 0x246d4c2
dec eax
jne 0x246d6e3
mov ebx, dword [esi + 0x10]
shl ebx, 5
add ebx, 7
shr ebx, 3
add ebx, 3
xor eax, eax
and ebx, 0xfffffffc
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], 9
mov dword [esp + 0x14], eax
push 0xff
push 0xff00
push 0xff0000
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xa
call fcn.0240dc80
mov ebp, dword [esp + 0x7c]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
push edx
push eax
lea edx, [esp + 0x30]
mov ecx, 0x20
mov byte [esp + 0x74], 0xb
call fcn.0240af10
mov edi, eax
test edi, edi
jne 0x246d2cc
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xa
call fcn.0247c770
xor eax, eax
jmp 0x246d6e8
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ebp
push ecx
push edx
lea edx, [esp + 0x30]
mov ecx, 0x20
mov dword [esp + 0x24], edi
call fcn.0240af10
mov ebp, eax
test ebp, ebp
jne 0x246d300
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xa
call fcn.0247c770
jmp 0x246d46c
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x7c], 0
jbe 0x246d360
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x80]
push 0x20
push 0
push edx
push eax
push ecx
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246d3e4
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x14]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], edx
jb 0x246d31b
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push ebx
push edx
push 0
push 0
mov ecx, ebp
call fcn.0240c6f0
test eax, eax
jne 0x246d3c8
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xa
call fcn.0247c770
mov ecx, ebp
mov byte [esp + 0x68], 9
call fcn.0240b020
push ebp
call fcn.024adc89
add esp, 4
mov ecx, edi
mov dword [esp + 0x68], 0xffffffff
call fcn.0240b020
push edi
call fcn.024adc89
add esp, 4
xor eax, eax
jmp 0x246d6e8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push 0
push 0
push edi
push 0
push 0
mov ecx, ebp
call fcn.0240b690
test eax, eax
jne 0x246d426
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0xa
call fcn.0247c770
mov ecx, ebp
mov byte [esp + 0x68], 9
call fcn.0240b020
push ebp
call fcn.024adc89
add esp, 4
mov ecx, edi
mov dword [esp + 0x68], 0xffffffff
call fcn.0240b020
push edi
call fcn.024adc89
add esp, 4
xor eax, eax
jmp 0x246d6e8
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x78]
push edx
push eax
push 0
push 0
push ebp
push ecx
mov ecx, dword [esp + 0x88]
push ebx
call fcn.0240c6f0
test eax, eax
mov byte [esp + 0x68], 0xa
lea ecx, [esp + 0x24]
jne 0x246d48b
call fcn.0247c770
mov ecx, ebp
mov byte [esp + 0x68], 9
call fcn.0240b020
push ebp
call fcn.024adc89
add esp, 4
mov ecx, edi
mov dword [esp + 0x68], 0xffffffff
call fcn.0240b020
push edi
call fcn.024adc89
add esp, 4
xor eax, eax
jmp 0x246d6e8
call fcn.0247c770
mov ecx, ebp
mov byte [esp + 0x68], 9
call fcn.0240b020
push ebp
call fcn.024adc89
add esp, 4
mov ecx, edi
mov dword [esp + 0x68], 0xffffffff
call fcn.0240b020
push edi
call fcn.024adc89
add esp, 4
jmp 0x246d6e3
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea ebp, [edx + 7]
shr ebp, 3
add ebp, 3
and ebp, 0xfffffffc
mov eax, ecx
imul eax, ebp
lea edi, [edx + edx*2]
lea ebx, [edi*8 + 7]
mov edi, dword [esp + 0x10]
shr ebx, 3
add ebx, 3
add eax, edi
and ebx, 0xfffffffc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x70], 6
call fcn.0240ad90
mov edi, eax
test edi, edi
je 0x246d484
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 8]
xor edx, edx
cmp eax, 8
setne dl
xor ecx, ecx
mov dword [esp + 0x18], edi
dec edx
and edx, 0xff
cmp eax, 8
sete cl
push edx
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.0240dc80
push 0xff
push 0xff00
push 0xff0000
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 7
call fcn.0240dc80
mov eax, dword [esi + 0x14]
test eax, eax
mov byte [esp + 0x68], 8
mov dword [esp + 0x7c], 0
jbe 0x246d5c8
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x80]
push 1
push 0
push ecx
push edx
push eax
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246d5f1
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x14]
inc eax
add edx, ebp
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], edx
jb 0x246d587
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x78]
push 2
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push 0
push 0
push edi
push eax
push ecx
mov ecx, dword [esp + 0x90]
call fcn.0240b330
test eax, eax
jne 0x246d625
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 7
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 6
call fcn.0247c770
push 1
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
mov eax, dword [esi + 0x14]
xor ebp, ebp
test eax, eax
jbe 0x246d668
mov edx, dword [esp + 0x14]
mov dword [esp + 0x7c], edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x40]
push eax
push 0x18
push 0
push ecx
push edx
push ebp
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246d5f1
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 0x14]
inc ebp
add ecx, ebx
cmp ebp, eax
mov dword [esp + 0x7c], ecx
jb 0x246d636
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x78]
push 3
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push 0
push 0
push edi
push edx
push eax
call fcn.0240b330
test eax, eax
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x40]
jne 0x246d6bf
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 6
call fcn.0247c770
push 1
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
call fcn.0247c770
mov byte [esp + 0x68], 6
lea ecx, [esp + 0x30]
call fcn.0247c770
mov dword [esp + 0x68], 0xffffffff
push 1
mov ecx, edi
call fcn.0246ee50
mov eax, 1
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea ebp, [edx + 7]
shr ebp, 3
add ebp, 3
and ebp, 0xfffffffc
mov eax, ecx
imul eax, ebp
add eax, ebx
mov dword [esp + 0x18], eax
cmp dword [edi + 8], 8
mov dword [esp + 0x14], ebp
jne 0x246da5b
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
push edi
push ecx
mov ecx, ebx
mov byte [esp + 0x70], 1
call fcn.0240ad90
mov ebp, eax
test ebp, ebp
je 0x246d484
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push ecx
mov ecx, ebx
mov dword [esp + 0x24], ebp
call fcn.0240ad90
mov edi, eax
test edi, edi
jne 0x246d787
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
push 0xff
push 0
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], edi
call fcn.0240dc80
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.0240dc80
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x68], 3
jbe 0x246d801
mov edx, dword [esp + 0x10]
mov dword [esp + 0x7c], edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x30]
push eax
push 1
push 0
push ecx
push edx
push ebx
push 0
mov ecx, ebp
call fcn.0240b180
test eax, eax
je 0x246d97c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
add ecx, eax
mov eax, dword [esi + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x7c], ecx
jb 0x246d7c7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x78]
push 2
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push 0
push 0
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x90]
call fcn.0240b330
test eax, eax
jne 0x246d86c
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 1
call fcn.0247c770
push 1
mov ecx, edi
mov byte [esp + 0x6c], 0
call fcn.0246ee50
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jbe 0x246d8b7
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x30]
push eax
push 1
push 0
push ecx
push edx
push ebx
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246d97c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
add ecx, eax
mov eax, dword [esi + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x7c], ecx
jb 0x246d87d
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edx
push 0
push 0
push edi
push 0
push 0
mov ecx, ebp
call fcn.0240b330
test eax, eax
jne 0x246d917
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 1
call fcn.0247c770
push 1
mov ecx, edi
mov byte [esp + 0x6c], 0
call fcn.0246ee50
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jbe 0x246d95e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 1
push 0
push edx
push eax
push ebx
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246d97c
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
inc ebx
add edx, ecx
cmp ebx, eax
mov dword [esp + 0x7c], edx
jb 0x246d928
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push 4
push edx
push eax
push 0
push 0
push ebp
push 0
push 0
mov ecx, edi
call fcn.0240b330
test eax, eax
jne 0x246d9be
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 1
call fcn.0247c770
push 1
mov ecx, edi
mov byte [esp + 0x6c], 0
call fcn.0246ee50
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x78]
push 3
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push 0
push 0
push edi
push eax
push ecx
mov ecx, dword [esp + 0x90]
call fcn.0240b330
test eax, eax
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x40]
jne 0x246da29
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 1
call fcn.0247c770
push 1
mov ecx, edi
mov byte [esp + 0x6c], 0
call fcn.0246ee50
push 1
mov ecx, ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
call fcn.0247c770
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 1
call fcn.0247c770
push 1
mov ecx, edi
mov byte [esp + 0x6c], 0
call fcn.0246ee50
mov dword [esp + 0x68], 0xffffffff
push 1
mov ecx, ebp
jmp 0x246d6de
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x7c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x70], 4
call fcn.0240ad90
mov edi, eax
test edi, edi
je 0x246d484
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], edi
call fcn.0240dc80
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x68], 5
jbe 0x246dadd
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x40]
push edx
push 1
push 0
push eax
push ecx
push ebx
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246db06
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 0x14]
inc ebx
add ecx, ebp
cmp ebx, eax
mov dword [esp + 0x7c], ecx
jb 0x246daab
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x78]
push 2
push edx
mov edx, dword [esp + 0x7c]
push eax
push 0
push 0
push edi
push ecx
mov ecx, dword [esp + 0x8c]
push edx
call fcn.0240b330
test eax, eax
jne 0x246db2c
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 4
call fcn.0247c770
push 1
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jbe 0x246db6f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 1
push 0
push edx
push eax
push ebx
push 0
mov ecx, edi
call fcn.0240b180
test eax, eax
je 0x246db06
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 0x14]
inc ebx
add ecx, ebp
cmp ebx, eax
mov dword [esp + 0x7c], ecx
jb 0x246db3d
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x78]
push 3
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push 0
push 0
push edi
push eax
push ecx
mov ecx, dword [esp + 0x90]
call fcn.0240b330
test eax, eax
mov byte [esp + 0x68], 4
lea ecx, [esp + 0x40]
jne 0x246d6cd
call fcn.0247c770
push 1
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.0246ee50
xor eax, eax
jmp 0x246d6e8