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

Disassembly:
push 0xffffffffffffffff
push 0x44eaeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x268]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0xc], ebp
jne 0x415388
xor al, al
jmp 0x4157fa
mov ebx, dword [esp + 0x26c]
cmp ebx, ebp
je 0x4157f8
mov eax, dword [esp + 0x270]
cmp eax, ebp
je 0x4157f8
test al, 1
je 0x4153b2
dec eax
mov dword [esp + 0x270], eax
cmp eax, ebp
jne 0x4153bd
xor al, al
jmp 0x4157fa
push edi
call fcn.00426680
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b], al
mov dword [esp + 0x20], ebp
mov byte [esp + 0x1a], 1
call fcn.0040f650
mov ecx, dword [esp + 0x274]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x264], ebp
mov dword [esp + 0x14], eax
jbe 0x4157dd
mov edi, dword [esp + 0x278]
jmp 0x415405
mov ebx, dword [esp + 0x270]
mov cl, byte [esi + 0x81]
test cl, cl
je 0x4154a6
mov edx, dword [esp + 0x274]
lea ecx, [eax + 3]
cmp edx, ecx
jb 0x4154a6
cmp byte [eax + ebx], 0xfd
jne 0x4154a6
cmp byte [eax + ebx + 1], 0xef
jne 0x4154a6
add eax, 2
xor edx, edx
mov dword [esp + 0x14], eax
mov dl, byte [eax + ebx]
mov ebx, edx
cmp ebx, 6
jae 0x4157bf
mov edx, dword [esp + 0x274]
inc eax
mov dword [esp + 0x14], eax
lea ecx, [ebx + eax]
cmp edx, ecx
mov dword [esp + 0x1c], ecx
jb 0x4157bf
test ebp, ebp
je 0x415485
lea eax, [esp + 0x58]
push ebp
push eax
mov ecx, edi
call fcn.004103d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x270]
push ebx
add eax, ecx
mov ecx, edi
push eax
call fcn.004103d0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov eax, edx
jmp 0x4157bf
mov cl, byte [esp + 0x1b]
test cl, cl
je 0x4154f9
mov cl, byte [eax + ebx + 1]
test cl, cl
jne 0x4154f9
mov cl, byte [eax + ebx]
cmp cl, 0x80
jae 0x4154f9
mov byte [esp + ebp + 0x58], cl
inc ebp
cmp ebp, 0x200
mov dword [esp + 0x10], ebp
jb 0x4154ec
lea eax, [esp + 0x58]
push ebp
push eax
mov ecx, edi
call fcn.004103d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], 1
jmp 0x4157b8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x270]
add ebx, eax
push edx
push 2
push ebx
call fcn.00426bb0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x415786
cmp byte [ebx], 0
jne 0x41556c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x270]
mov dl, byte [eax + ecx + 1]
test dl, dl
jne 0x41556c
mov byte [esp + ebp + 0x58], 0
inc ebp
cmp ebp, 0x200
mov dword [esp + 0x10], ebp
jb 0x4157b4
lea edx, [esp + 0x58]
push ebp
push edx
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
jmp 0x4157b4
mov eax, dword [esi + 8]
test eax, eax
je 0x41577f
mov cl, byte [esi + 0x81]
test cl, cl
je 0x415751
cmp eax, 1
jne 0x4155cb
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41577f
test ebp, ebp
je 0x4155b2
lea eax, [esp + 0x58]
push ebp
push eax
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.004103d0
mov byte [esp + 0x1a], 0
jmp 0x4157b4
cmp eax, 7
jne 0x415639
test ebp, ebp
je 0x4155e9
lea eax, [esp + 0x58]
push ebp
push eax
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x27c]
mov ecx, dword [esi + 8]
mov ebp, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
push eax
push edi
push 2
push ebx
mov dword [esp + 0x2c], ecx
push ebp
push 0x4b0
mov ecx, esi
mov dword [esp + 0x3c], edx
mov dword [esi + 8], 0
call fcn.00417320
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x78], ebp
mov ebp, dword [esp + 0x10]
mov dword [esi + 8], ecx
mov dword [esi + 0x7c], edx
mov byte [esp + 0x1a], 0
jmp 0x4157b4
cmp eax, 2
jne 0x41571c
lea ecx, [esp + 0x2c]
call fcn.0040f260
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x27c]
mov ebp, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2c]
push edx
push eax
push 2
push ebx
mov dword [esp + 0x38], ecx
push ebp
push 0x4b0
mov ecx, esi
mov dword [esp + 0x3c], ebp
mov dword [esi + 8], 0
call fcn.00417320
lea ecx, [esp + 0x2c]
call fcn.0040f2a0
test eax, eax
je 0x4156fd
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x4156ac
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x2c]
call fcn.0040f2a0
push 0x26
mov ecx, edi
mov ebx, eax
call fcn.00410170
push 0x23
mov ecx, edi
call fcn.00410170
push 0x78
mov ecx, edi
call fcn.00410170
test ebx, ebx
jle 0x4156f0
push edi
push 1
push ebp
lea ecx, [esp + 0x38]
call fcn.0040f2b0
push eax
mov ecx, esi
call fcn.00414c70
inc ebp
cmp ebp, ebx
jl 0x4156d6
push 0x3b
mov ecx, edi
call fcn.00410170
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x78], ebp
mov ebp, dword [esp + 0x10]
mov dword [esi + 8], edx
mov dword [esi + 0x7c], eax
mov byte [esp + 0x1a], 0
jmp 0x4157b4
test ebp, ebp
je 0x415739
lea ecx, [esp + 0x58]
push ebp
push ecx
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x27c]
mov ecx, esi
push edx
push edi
push ebx
call fcn.00414ce0
mov byte [esp + 0x1a], 0
jmp 0x4157b4
test ebp, ebp
je 0x41576e
lea eax, [esp + 0x58]
push ebp
push eax
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x27c]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.00414ce0
mov byte [esp + 0x1a], 0
jmp 0x4157b4
test ebp, ebp
je 0x4157a3
lea edx, [esp + 0x58]
push ebp
push edx
mov ecx, edi
call fcn.004103d0
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, edi
call fcn.004103d0
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x274]
jb 0x4153fe
test ebp, ebp
je 0x4157dd
lea edx, [esp + 0x58]
push ebp
push edx
mov ecx, edi
call fcn.004103d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x264], 0xffffffff
call fcn.0040fe20
mov al, byte [esp + 0x1a]
pop edi
jmp 0x4157fa
mov al, 1
mov ecx, dword [esp + 0x258]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret 0x14