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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c3559
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4fe870]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x4fe870]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
lea ecx, [esp + 0x28]
call fcn.00409580
xor ebx, ebx
mov dword [esp + 0x290], ebx
lea eax, [esp + 0x28]
push eax
call fcn.00405b20
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00409580
mov byte [esp + 0x290], 1
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push 0x4d7d6c
push edx
call fcn.0040bbe0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
mov byte [esp + 0x27], 1
call dword [0x4c83cc]
test eax, eax
je 0x4151ac
mov ecx, dword [0x505f34]
push ebx
push 0x1e26
push 0x4d7da0
push ecx
call dword [0x4c8634]
push ebx
push 0x4ffe8c
push ebx
push ebx
push 0x4d7db8
mov esi, eax
push ebx
push esi
mov dword [esp + 0x40], esi
call dword [0x4c8630]
push ebx
push ebx
push ebx
push ebx
push ebx
mov edi, eax
push ebx
push edi
call dword [0x4c862c]
push ebx
push edi
call dword [0x4c863c]
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push 0x20000005
push edi
mov dword [esp + 0x34], 4
mov dword [esp + 0x54], ebx
call dword [0x4c8644]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x41548d
inc eax
push eax
call fcn.0047b1a9
mov ecx, dword [esp + 0x40]
mov esi, eax
add esp, 4
mov byte [esi + ecx], bl
mov dword [esp + 0x14], esi
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
call dword [0x4c8648]
test eax, eax
je 0x415472
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x40], ebx
call dword [0x4c864c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
cmp dword [esp + 0x1c], ebx
ja 0x415000
push 0x14
call fcn.0047b16f
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x290], 2
cmp eax, ebx
je 0x415089
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x30], edx
mov edx, dword [esi]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x41508d
mov dword [esp + 0x14], ebx
mov byte [esp + 0x290], 1
push esi
call fcn.0047b19e
mov esi, dword [0x4c8638]
add esp, 4
push edi
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x34], ebx
call fcn.004b98c0
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x34], esi
neg ecx
or ecx, eax
push ecx
call fcn.0047b1a9
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x34]
push esi
push eax
push ebx
push ecx
mov dword [esp + 0x34], esi
call fcn.004b98c6
test eax, eax
je 0x415181
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
push 0x4d7dd8
push esi
call fcn.004b98cc
test eax, eax
je 0x415181
push 0x14
call fcn.0047b16f
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x290], 3
cmp eax, ebx
je 0x415164
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, ecx
mov edi, edx
and esi, 0xffff
shr ecx, 0x10
and edi, 0xffff
shr edx, 0x10
mov dword [eax + 0x10], esi
mov esi, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
jmp 0x415166
xor eax, eax
mov byte [esp + 0x290], 1
mov ecx, dword [esp + 0x14]
mov edi, eax
call fcn.00452060
test eax, eax
jg 0x415181
mov byte [esp + 0x23], bl
push esi
call fcn.0047b19e
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, ebx
je 0x415197
call fcn.00415560
cmp edi, ebx
je 0x4151a2
mov esi, edi
call fcn.00415560
cmp byte [esp + 0x23], bl
je 0x4152c9
mov edx, dword [0x505f34]
push ebx
push 0x1e26
push 0x4d7da0
push edx
call dword [0x4c8634]
push ebx
push 0x4ffe8c
push ebx
push ebx
push 0x4d7ddc
mov edi, eax
push ebx
push edi
mov dword [esp + 0x50], edi
call dword [0x4c8630]
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, eax
push ebx
push esi
call dword [0x4c862c]
push ebx
push esi
call dword [0x4c863c]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x20000005
push esi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x3c], ebx
call dword [0x4c8644]
lea ecx, [esp + 0x40]
call fcn.0048cc49
mov byte [esp + 0x290], 4
mov edx, dword [esp + 0x18]
push ebx
push 0x1001
push edx
lea ecx, [esp + 0x4c]
call fcn.0048d0a7
test eax, eax
je 0x4154a7
cmp dword [esp + 0x24], ebx
je 0x41549b
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [0x4c8648]
test eax, eax
je 0x4152a6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047b1a9
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
push edi
push esi
mov dword [esp + 0x3c], ebx
call dword [0x4c864c]
mov ecx, dword [esp + 0x2c]
push ecx
push edi
lea ecx, [esp + 0x48]
call fcn.0048c97f
push edi
call fcn.0047b19e
mov edi, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x14], ebx
ja 0x415251
push esi
mov esi, dword [0x4c8638]
call esi
push edi
call esi
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x40]
call fcn.0048cd51
lea ecx, [esp + 0x38]
call fcn.00409580
mov byte [esp + 0x290], 5
push 0x206
lea eax, [esp + 0x7a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x80], dx
call fcn.004a2100
add esp, 0xc
push 0x104
lea ecx, [esp + 0x78]
push ecx
push ebx
call dword [0x4c82f4]
mov esi, dword [0x505fc8]
call fcn.00451fb0
push eax
push 0x4d7e00
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x44]
push 0x4d7e50
push eax
call fcn.0040bbe0
add esp, 0x14
push ebx
call fcn.0049fe43
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edx
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x48], eax
call fcn.004a03d4
add esp, 8
cmp eax, ebx
jne 0x4154dc
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 8
jl 0x4154dc
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004a03d4
add esp, 8
cmp eax, ebx
jne 0x4153ae
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 8
jle 0x4153ae
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004a03d4
add esp, 8
cmp eax, ebx
jne 0x4154dc
cmp dword [esp + 0x5c], 0x16
jl 0x4154dc
lea ecx, [esp + 0x14]
call fcn.00409580
mov byte [esp + 0x290], 6
push 0x6a
call fcn.0048841f
cmp eax, ebx
je 0x4153d6
push 0x6a
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f9c0
push 0x4d7e80
lea ecx, [esp + 0x20]
call fcn.00414290
mov byte [esp + 0x290], 7
push 1
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00415580
mov byte [esp + 0x290], 8
push eax
lea ecx, [esp + 0x20]
call fcn.0040f440
mov byte [esp + 0x290], 7
lea ecx, [esp + 0x24]
call fcn.004094d0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41544b
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x41544b
push eax
push ecx
call fcn.004a06b6
add esp, 8
cmp eax, ebx
je 0x41544b
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 4
je 0x4154ba
mov byte [esp + 0x290], 6
lea ecx, [esp + 0x1c]
call fcn.004094d0
mov byte [esp + 0x290], 5
lea ecx, [esp + 0x14]
call fcn.004094d0
jmp 0x4154f9
push esi
call fcn.0047b19e
mov esi, dword [0x4c8638]
add esp, 4
push edi
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
jmp 0x41550a
push edi
mov edi, dword [0x4c8638]
call edi
push esi
call edi
jmp 0x41550a
push esi
mov esi, dword [0x4c8638]
call esi
push edi
call esi
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x40]
call fcn.0048cd51
jmp 0x41550a
mov byte [esp + 0x290], 6
lea ecx, [esp + 0x1c]
call fcn.004094d0
mov byte [esp + 0x290], 5
lea ecx, [esp + 0x14]
call fcn.004094d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 1
push 0x4d7eb0
push edx
push eax
push 0x4d7ec0
push ebx
call dword [0x4c83b4]
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x38]
call fcn.004094d0
mov byte [esp + 0x290], bl
lea ecx, [esp + 0x18]
call fcn.004094d0
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004094d0
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0049f30a
mov esp, ebp
pop ebp
ret