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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013ccc4]
push ebx
push esi
mov esi, dword [0x1013cb58]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edi
and dword [edi + 0x3c], 0xfffffeff
mov dword [eax], edi
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x28], 8
mov dword [esi], edi
mov dword [esi + 4], 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xffffffff
mov edx, 4
mov eax, dword [ebp - 8]
call dword [0x10121504]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x44]
test eax, 0x8081
je 0x10036cf1
and eax, 0xffff7fff
mov dword [edi + 0x44], eax
jmp 0x10037229
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
jne 0x10036dcf
call dword [0x10121004]
mov ecx, dword [0x1013cd38]
mov edx, 9
mov ecx, dword [ecx]
call fcn.100247b0
mov ebx, dword [0x10174f98]
mov esi, eax
xor eax, eax
cmp ebx, esi
je 0x10036d38
mov eax, ebx
sub eax, esi
cdq
mov ecx, eax
mov eax, 0xfa
xor ecx, edx
sub ecx, edx
cdq
inc ecx
idiv ecx
push eax
push 0
push esi
push ebx
mov edx, 0x4b
mov ecx, 0x1d9
call fcn.10043690
mov eax, dword [0x1013cd88]
mov dword [0x10174f98], esi
cmp eax, 0xffffffff
je 0x10036d7a
mov edx, dword [0x1013ccd0]
mov dword [edx], eax
mov dword [0x1013cd88], 0xffffffff
mov edx, dword [edx]
mov ecx, dword [edi + 0x40]
call fcn.10043540
jmp 0x10036dd5
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
je 0x10036daf
mov ecx, dword [0x519d9c]
xor eax, eax
mov edx, dword [0x519da0]
test ecx, ecx
je 0x10036dab
mov esi, dword [edi + 0x64]
cmp dword [edx + eax*4], esi
je 0x10036da6
inc eax
cmp eax, ecx
jb 0x10036d98
xor eax, eax
jmp 0x10036db9
inc eax
test eax, eax
jg 0x10036daf
xor eax, eax
jmp 0x10036db9
mov ecx, edi
call fcn.10021440
mov eax, dword [eax + 0xc]
mov edx, dword [0x1013ccd0]
add eax, eax
mov dword [edx], eax
mov edx, eax
mov ecx, dword [edi + 0x40]
call fcn.10043540
jmp 0x10036dd5
call dword [0x10121190]
mov ecx, dword [edi + 0x78]
xor ebx, ebx
cmp ecx, 0xffffffff
je 0x10036f93
lea edx, [ebp - 0xc]
call fcn.1006e780
cmp eax, 0xffffffff
je 0x10036df9
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov ecx, dword [edi + 0x78]
lea edx, [ebp - 0xc]
call fcn.1006e780
cmp eax, 0xffffffff
je 0x10036e13
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 4
xor bl, bl
cmp dword [0x51c714], 0
je 0x10036f6b
mov ecx, dword [edi + 0x78]
lea edx, [ebp - 0xc]
call fcn.1006e780
cmp eax, 0xffffffff
je 0x10036f6b
mov esi, dword [ebp - 0xc]
mov dword [esi + 0x44], 0
mov dword [esi + 0x28], 0
test byte [esi + 0x10], 1
jne 0x10036e8b
mov eax, dword [esi + 0x14]
and eax, 0xffffff
lea ecx, [eax + eax*4]
mov eax, dword [0x51c7c8]
lea eax, [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call dword [0x101214a4]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10036e85
push str._nError:_exec_script_proc:_script_load_failed_
call fcn.10016d20
add esp, 4
jmp 0x10036f6b
or dword [esi + 0x10], 1
mov bl, 1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10036f6b
mov ecx, 0x124
test word [eax + 0x80], cx
jne 0x10036f6b
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x10036ec4
push 0x28
push eax
mov edx, esi
mov ecx, 0xd
call fcn.100cd960
mov dword [ebp - 4], eax
test bl, bl
jne 0x10036edd
test eax, eax
jne 0x10036edd
mov eax, dword [esi + 0x58]
mov dword [ebp - 4], eax
test eax, eax
je 0x10036f6b
cmp eax, 0xffffffff
je 0x10036f6b
cmp dword [esi + 0x3c], 0
jne 0x10036ef2
mov eax, dword [esi + 0x34]
mov dword [esi + 0x3c], eax
or dword [esi + 0x10], 4
test bl, bl
je 0x10036f41
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
call dword [0x10121218]
mov eax, dword [esi + 0x88]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10036f23
mov eax, dword [esi + 0x58]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [ebp - 4], eax
mov dword [esi + 0x2c], 0
mov eax, dword [ebp - 0xc]
call dword [0x10121224]
mov edx, 0xffffffff
mov eax, dword [ebp - 0xc]
call dword [0x10121570]
mov dword [esi + 0x2c], 0xd
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call dword [0x101216d0]
mov edx, esi
mov ecx, 0xd
push 0x29
push 0
call fcn.100cd960
mov dword [esi + 0x38], 0
mov ecx, dword [edi + 0x78]
lea edx, [ebp - 0xc]
call fcn.1006e780
cmp eax, 0xffffffff
je 0x10036f83
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x44]
jmp 0x10036f85
xor ebx, ebx
mov eax, dword [0x1013cc2c]
cmp dword [eax], 1
je 0x100370f4
mov ecx, dword [0x101822f8]
test ecx, ecx
je 0x10036fc4
mov dword [ecx + 4], 2
mov dword [ecx + 0x10], ebx
call fcn.100cb2c0
mov eax, dword [0x101822f8]
cmp dword [eax + 0x90], 0
jbe 0x10036fc4
cmp dword [eax + 0x44], 1
je 0x10037229
test ebx, ebx
jne 0x10037229
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x10036fe7
mov ecx, edi
call fcn.1001a530
test al, al
je 0x10036fe7
mov eax, dword [ebp - 8]
call dword [0x10120e10]
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
jne 0x100370fe
call dword [0x10121674]
call dword [0x10121610]
mov ecx, dword [0x51094c]
test ecx, ecx
je 0x10037012
mov ecx, dword [ecx + 4]
call fcn.10032630
test esi, esi
jne 0x1003701e
mov eax, dword [0x1013ccc8]
or dword [eax], 2
call dword [0x10121564]
xor esi, esi
cmp dword [0x56d37c], esi
jbe 0x10037054
mov ebx, 0x56d390
lea edi, [ebx - 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x10], eax
mov edx, 0
mov eax, dword [ebp - 0x10]
call dword [0x10120e08]
inc esi
cmp esi, dword [edi]
jb 0x10037036
mov edi, dword [ebp - 8]
cmp dword [0x56d38c], 0
je 0x10037062
call fcn.10035b80
mov ecx, dword [0x10176038]
mov eax, ecx
or ecx, 0x800
mov dword [0x10176038], ecx
xor ecx, eax
je 0x10037081
xor ecx, ecx
call fcn.100b64a0
call dword [0x10120e28]
mov edx, dword [0x10176038]
mov esi, eax
mov ecx, edx
and edx, 0xfffff7ff
mov dword [0x10176038], edx
xor edx, ecx
je 0x100370a8
xor ecx, ecx
call fcn.100b64a0
cmp esi, 0xffffffff
jne 0x10037168
mov eax, 1
call dword [0x10121678]
lea ecx, [esi + 0x1b]
call fcn.1006b220
mov dword [edi + 0x48], 0
call dword [0x10121568]
call dword [0x10120e20]
or edx, esi
or ecx, esi
call fcn.10043540
lea ecx, [esi + 2]
call fcn.1001cd10
mov ecx, dword [0x1013ccd0]
mov dword [ecx], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x56d38c], 0
je 0x1003712d
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.10020fd0
test eax, eax
jne 0x1003712d
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call dword [0x10121124]
mov edx, dword [0x51094c]
test edx, edx
je 0x1003713c
mov edx, dword [edx + 4]
jmp 0x1003713e
xor edx, edx
cmp byte [0x10142c62], 0
mov ecx, edi
mov dword [ebp - 0xc], edx
je 0x10037153
call fcn.10063a90
jmp 0x10037168
call fcn.1008c140
test al, al
jne 0x10037168
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call dword [0x10120e38]
cmp dword [0x51093c], 0
jle 0x100371a8
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov ebx, 0x51093c
nop dword [eax]
cmp byte [0x101558f3], 0
je 0x1003719d
push 0
push 0x4ff
push 1
push 0
push 0
call esi
call fcn.10014be0
call dword [0x101212e8]
cmp dword [ebx], 0
jg 0x10037180
mov eax, dword [0x1013cd38]
cmp edi, dword [eax]
jne 0x10037203
mov eax, 1
call dword [0x10121678]
mov ecx, 0x1a
call fcn.1006b220
call dword [0x10121568]
call dword [0x10120e20]
or edx, 0xffffffff
or ecx, edx
call fcn.10043540
cmp byte [0x1013cd84], 0
je 0x10037229
mov eax, dword [0x1013ccc4]
mov ecx, 1
mov dword [eax], 0
call fcn.1001cd10
mov eax, dword [0x1013ccc4]
mov dword [eax], edi
jmp 0x10037229
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.10021010
test eax, eax
jne 0x10037229
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call dword [0x10121124]
mov eax, dword [0x1013cd38]
mov dword [edi + 0x48], 0
mov ecx, dword [eax]
test byte [ecx + 0x44], 0x80
jne 0x100370f4
cmp edi, ecx
jne 0x10037253
mov eax, dword [0x56d378]
cmp eax, dword [ecx + 0x28]
jne 0x100370f4
mov eax, dword [0x1013ccd0]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret