Function at 0x4af6a3
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov esi, edx
mov dword [esp + 0x58], edi
inc eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], eax
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
test esi, esi
je 0x4b041a
cmp byte [ecx + 0x1e], 0
jne 0x4b041a
xor ebx, ebx
cmp dword [edi + 0x40], ebx
jne 0x4b041a
push 0x2c
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.00438880
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp byte [ecx], 4
ja 0x4af71b
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x20]
call fcn.004bf869
mov eax, 0xfffe
mov dword [esi + 0x18], ebx
and word [esi + 6], ax
push ebx
mov edx, esi
mov ecx, edi
call fcn.004b06ed
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
pop ecx
mov dword [esp + 0x30], eax
cmp dword [edi + 0x40], ebx
jne 0x4b03f3
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x1e], bl
jne 0x4b03f3
movzx eax, word [esi + 6]
mov ecx, edi
shr eax, 2
and eax, 1
mov dword [esp + 0x24], eax
call fcn.004b2c5d
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b03f3
mov ecx, dword [esi + 0x1c]
mov edx, ebx
mov dword [esp + 0x28], ebx
test ecx, ecx
jne 0x4af8a3
mov ecx, ebx
mov eax, dword [esp + 0x30]
movsx eax, word [eax]
cmp edx, eax
jge 0x4af8a3
mov ecx, dword [esp + 0x30]
imul eax, edx, 0x38
mov dword [esp + 0x14], eax
mov edi, dword [eax + ecx + 0x18]
test edi, edi
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x58]
je 0x4af893
cmp byte [eax + ecx + 0x1c], bl
jne 0x4af893
mov ecx, esi
call fcn.004c0541
add dword [edi + 0x208], eax
mov edx, esi
mov eax, dword [esp + 0x40]
mov ecx, edi
movzx eax, word [eax + 6]
shr eax, 2
and eax, 1
push eax
push dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004b0e4e
add esp, 0xc
test eax, eax
je 0x4af80f
cmp dword [esp + 0x38], ebx
je 0x4af806
or word [esi + 6], 4
mov dword [esp + 0x24], 1
or eax, 0xffffffff
mov dword [esp + 0x28], eax
jmp 0x4af85b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + ecx + 0x20]
mov ecx, edi
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xb4]
push eax
mov word [esp + 0xb8], 9
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call fcn.004af6a3
mov eax, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x30]
mov byte [eax + ecx + 0x1c], 1
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x1e], bl
jne 0x4b03f3
mov ecx, esi
call fcn.004c0541
sub dword [edi + 0x208], eax
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 4
jbe 0x4af893
mov eax, dword [esi + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 0x1c]
inc edx
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x4af782
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], eax
movzx eax, word [esi + 6]
and eax, 1
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4af920
cmp dword [esi + 0x24], ebx
jne 0x4af90e
mov ecx, ebx
mov eax, esi
mov dword [eax + 0x20], ebx
inc ecx
mov dword [eax + 0x24], esi
mov ebx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4af8da
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x58], 0
je 0x4af90e
cmp ecx, dword [eax + 0x58]
jle 0x4af90e
push 0x4fc2fc
push edi
call fcn.004d3239
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4b041a
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.004b21aa
pop ecx
jmp 0x4b041a
push dword [edx]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004b3942
pop ecx
test eax, eax
jne 0x4b03f3
mov al, byte [esi + 6]
and al, 5
cmp al, 1
jne 0x4af963
mov edx, dword [esi]
mov ecx, dword [esp + 0x20]
push ebx
call fcn.004bfcd0
mov dword [esp + 0x30], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x48], eax
mov eax, 0xfffe
and word [esi + 6], ax
pop ecx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4af9aa
mov edx, eax
mov ecx, edi
call fcn.004b3551
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov eax, dword [edi + 0x44]
push 0xfffffffffffffff0
push ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], eax
inc dword [edi + 0x44]
mov eax, dword [edx]
push ebx
add eax, 2
push eax
push dword [edx + 8]
push 0x28
pop edx
call fcn.004c85cc
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x34], ecx
mov dword [esi + 0x40], ecx
jmp 0x4af9af
or dword [esp + 0x34], 0xffffffff
mov eax, dword [ebp + 8]
cmp byte [eax], 9
jne 0x4af9d0
mov ecx, dword [esp + 0x5c]
push ebx
push dword [ecx]
mov ecx, dword [esp + 0x18]
push dword [eax + 4]
push 0x28
pop edx
call fcn.004c863a
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.004c857f
push eax
mov edx, esi
mov dword [esp + 0xb4], eax
mov ecx, edi
call fcn.004b2b28
pop ecx
cmp dword [esp + 0x14], ebx
je 0x4afa32
mov eax, dword [edi + 0x44]
mov ecx, edi
mov dword [esp + 0x54], eax
inc eax
mov dword [edi + 0x44], eax
mov edx, dword [esi]
call fcn.004b3551
mov ecx, dword [esp + 0x10]
mov esi, eax
push ebx
push ebx
push dword [esp + 0x5c]
push 0x28
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
push 0xfffffffffffffff0
push esi
call fcn.004c80c5
mov esi, dword [esp + 0x6c]
pop ecx
pop ecx
jmp 0x4afa37
or dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ebx
jne 0x4afad0
test ecx, ecx
jne 0x4afad4
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
push ebx
push eax
push dword [esp + 0x58]
mov ecx, edi
call fcn.004aab4b
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4b03f3
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
test edx, edx
js 0x4afa9f
test eax, eax
jne 0x4afa9f
mov ecx, dword [esp + 0x10]
push 1
call fcn.004c8206
or dword [esi + 0x40], 0xffffffff
mov eax, dword [esp + 0x40]
pop ecx
mov ecx, dword [esp + 0x40]
push dword [ecx + 0x14]
mov edx, esi
push dword [ecx + 0x10]
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
push dword [esp + 0x78]
mov ecx, edi
call fcn.004b35ee
mov ecx, dword [esp + 0x60]
add esp, 0x20
call fcn.004aa845
mov ecx, dword [esp + 0x10]
jmp 0x4b03aa
test ecx, ecx
je 0x4afb0c
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jle 0x4afaf3
add edx, 0x10
xor esi, esi
dec eax
mov word [edx], si
lea edx, [edx + 0x14]
test eax, eax
jg 0x4afae2
mov esi, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [ecx + 0xc]
test eax, eax
jle 0x4afb0c
lea ecx, [edx + 0x10]
xor edx, edx
dec eax
mov word [ecx], dx
lea ecx, [ecx + 0x14]
test eax, eax
jg 0x4afaff
mov ecx, dword [esp + 0x10]
call fcn.004c857f
mov ecx, dword [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0x7c]
movlpd qword [esp + 0xcc], xmm0
movlpd qword [esp + 0xd4], xmm0
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xe0], eax
test ecx, ecx
je 0x4afb6b
mov eax, dword [ecx]
inc eax
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0xc4]
call fcn.004bd249
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc4]
call fcn.004bd249
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4afba8
mov edx, eax
lea ecx, [esp + 0xc4]
call fcn.004bd27d
mov eax, dword [esp + 0x90]
mov dword [esp + 0x98], eax
cmp dword [esp + 0xa0], ebx
jle 0x4afbf1
mov esi, ebx
mov edi, ebx
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0xc4]
mov edx, dword [esi + eax]
mov edx, dword [edx + 0x10]
call fcn.004bd249
inc edi
lea esi, [esi + 0x10]
cmp edi, dword [esp + 0xa0]
jl 0x4afbc3
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x1e], bl
jne 0x4b03f3
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4b0185
mov eax, dword [edi + 0x44]
mov edx, ecx
mov dword [esp + 0x80], eax
mov ecx, edi
inc eax
mov dword [edi + 0x44], eax
call fcn.004b3551
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffff0
push eax
push ebx
push dword [esp + 0x94]
mov dword [esp + 0xb8], eax
push dword [esp + 0x90]
push 0x28
pop edx
call fcn.004c85cc
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0x48]
inc eax
mov dword [esp + 0x78], eax
inc eax
mov dword [esp + 0x24], eax
inc eax
mov dword [edi + 0x48], eax
call fcn.004c857f
inc dword [edi + 0x48]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x14], eax
call fcn.004c857f
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
push ebx
push dword [esp + 0x28]
lea eax, [ecx + 1]
add ecx, dword [edx]
mov dword [esp + 0x68], eax
mov dword [edi + 0x48], ecx
push ebx
lea eax, [ecx + 1]
mov dword [esp + 0x7c], eax
mov eax, dword [edx]
add eax, ecx
mov ecx, dword [esp + 0x1c]
push 7
pop edx
mov dword [edi + 0x48], eax
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push dword [esp + 0x7c]
push ebx
push 7
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push dword [esp + 0x38]
push dword [esp + 0x1c]
push 2
pop edx
call fcn.004c863a
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
add esp, 0xc
mov ecx, edi
push ebx
push eax
push dword [esp + 0x58]
call fcn.004aab4b
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
je 0x4b03f3
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4afd2c
mov ecx, dword [esi + 0x10]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], ebx
jmp 0x4afee9
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
inc eax
mov edx, eax
mov dword [esp + 0x50], 1
mov esi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x74], edx
cmp dword [esp + 0x90], ebx
jle 0x4afd85
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
add ebx, 0xc
cmp dword [ebx], esi
lea eax, [edx + 1]
lea ebx, [ebx + 0x18]
cmovl eax, edx
mov edx, eax
lea eax, [esi + 1]
cmovl eax, esi
mov esi, eax
sub edi, 1
jne 0x4afd61
mov edi, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x74], edx
mov ecx, edi
call fcn.004bd1ba
mov esi, eax
mov ecx, edi
mov dword [esp + 0x4c], esi
call fcn.004bed1d
mov edx, dword [esp + 0x44]
mov ecx, edi
push ebx
push esi
call fcn.004bdcb3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add eax, esi
push ebx
push eax
push dword [esp + 0x90]
push 0x34
pop edx
call fcn.004c863a
add esp, 0x14
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x90], 0
jle 0x4afe62
mov ecx, dword [esp + 0x48]
mov edx, esi
add edx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], edx
mov eax, ebx
mov esi, dword [esp + 0x8c]
cmp dword [eax + esi + 0xc], ecx
mov esi, dword [esp + 0x10]
jl 0x4afe45
mov ecx, dword [esp + 0x8c]
push ebx
push edx
push dword [eax + ecx + 4]
mov edx, dword [eax + ecx]
push dword [eax + ecx + 8]
mov ecx, edi
call fcn.004bed43
mov edx, dword [esp + 0x54]
add esp, 0x10
cmp edx, eax
je 0x4afe33
push ebx
push edx
push eax
push 0xf
pop edx
mov ecx, esi
call fcn.004c863a
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
inc ecx
inc edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x68]
add eax, 0x18
inc edi
mov dword [esp + 0x1c], eax
cmp edi, dword [esp + 0x90]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x58]
jl 0x4afde8
mov ecx, edi
call fcn.004bd22d
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push dword [esp + 0x78]
push dword [esp + 0x54]
push 0x1e
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push esi
push dword [esp + 0x88]
push 0x43
pop edx
call fcn.004c863a
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004bd1f9
mov eax, dword [esp + 0x74]
cmp eax, dword [edi + 0x38]
jle 0x4afeb7
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x3c], eax
mov ecx, dword [esp + 0x38]
call fcn.004aa845
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x88]
push 0x3f
pop edx
call fcn.004c863a
add esp, 0xc
mov byte [esp + 0x7d], 1
mov ecx, edi
call fcn.004bed1d
mov eax, dword [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x68], eax
call fcn.004bed1d
mov eax, dword [esp + 0x2c]
mov ecx, ebx
mov dword [esp + 0x1c], ecx
cmp dword [eax], ebx
jle 0x4aff61
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x70]
add edx, ecx
push edx
test ebx, ebx
je 0x4aff2f
push ecx
push dword [esp + 0x88]
mov ecx, esi
push 0x1c
pop edx
call fcn.004c863a
add esp, 0xc
jmp 0x4aff49
mov byte [esp + 0x80], 1
mov ecx, edi
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax]
call fcn.004bde9e
pop ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc ecx
add dword [esp + 0x4c], 0x14
mov dword [esp + 0x1c], ecx
cmp ecx, dword [eax]
jl 0x4aff0d
xor ebx, ebx
push 0xfffffffffffffffa
push dword [esp + 0xac]
mov ecx, esi
push dword [eax]
push dword [esp + 0x7c]
push dword [esp + 0x70]
push 0x18
pop edx
call fcn.004c85cc
mov esi, dword [esi + 0xc]
add esp, 0x14
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
push ebx
push eax
push 0x19
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x70]
push dword [ecx]
mov ecx, edi
push dword [esp + 0x64]
call fcn.004beca7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc eax
push ebx
push dword [esp + 0x78]
push eax
push 2
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x70
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push dword [esp + 0x38]
push dword [esp + 0x1c]
push 2
pop edx
call fcn.004c863a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
mov esi, eax
mov ecx, esi
push dword [eax + 0xc]
call fcn.004c83c5
pop ecx
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004b0421
push ebx
push dword [esp + 0x7c]
mov ecx, esi
push 1
push 7
pop edx
call fcn.004c863a
add esp, 0xc
cmp dword [esp + 0x50], 0
je 0x4b004c
push ebx
push dword [esp + 0x6c]
mov ecx, esi
push dword [esp + 0x88]
push 0x42
pop edx
call fcn.004c863a
add esp, 0xc
jmp 0x4b0066
mov ecx, dword [esp + 0x38]
call fcn.004aa845
mov edx, dword [esp + 0xac]
mov ecx, esi
push 1
call fcn.004c8206
pop ecx
mov eax, dword [esp + 0x24]
mov ecx, esi
push ebx
push dword [esp + 0x70]
inc eax
push eax
push 2
pop edx
call fcn.004c863a
add esp, 0xc
xor edx, edx
inc edx
mov ecx, esi
push ebx
push dword [esp + 0x2c]
push ebx
call fcn.004c863a
mov edi, dword [esi + 0xc]
add esp, 0xc
mov ecx, esi
push ebx
push dword [esp + 0x28]
push 1
push 7
pop edx
call fcn.004c863a
mov eax, dword [esp + 0x30]
add esp, 0xc
inc eax
mov ecx, esi
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c863a
mov edx, dword [esp + 0x78]
add esp, 0xc
mov ecx, esi
call fcn.004c8567
mov esi, dword [esi + 0xc]
push ebx
lea eax, [esi + 2]
push eax
push dword [esp + 0x80]
push 0x70
pop edx
call fcn.004c863a
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc eax
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x88]
add esp, 0xc
call fcn.004b05c0
mov edx, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x58]
push 8
push esi
call fcn.004bd6b0
push edi
mov edi, dword [esp + 0x64]
mov ecx, edi
push esi
push dword [ebp + 8]
mov esi, dword [esp + 0x78]
mov edx, esi
push dword [esp + 0x68]
push dword [esp + 0x54]
push ebx
push ebx
push dword [esi]
call fcn.004b35ee
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
inc eax
push ebx
push ebx
push eax
push 3
pop edx
call fcn.004c863a
mov edx, dword [esp + 0x68]
add esp, 0x34
mov ecx, dword [esp + 0x10]
call fcn.004c8567
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004b060f
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push dword [esp + 0x1c]
push 3
pop edx
call fcn.004c863a
add esp, 0xc
jmp 0x4b039d
lea edx, [esp + 0x7c]
mov dword [esp + 0x54], ebx
mov ecx, esi
call fcn.004b0d9b
mov dword [esp + 0x14], eax
test eax, eax
je 0x4b0285
mov ecx, dword [edi]
mov edx, dword [eax + 0x40]
call fcn.004b43e3
mov edx, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x34], eax
inc eax
mov dword [edi + 0x44], eax
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], eax
call fcn.004b9c15
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4b0219
mov ecx, ebx
test ecx, ecx
je 0x4b01ec
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jge 0x4b01ee
mov ecx, edx
mov edx, dword [edx + 0x20]
test edx, edx
jne 0x4b01e0
test ecx, ecx
je 0x4b0219
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0xc]
jge 0x4b0219
mov eax, dword [ecx + 0x14]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x60], eax
call fcn.004b9b11
mov dword [esp + 0x1c], eax
push dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x64]
push dword [esp + 0x3c]
push 0x26
pop edx
call fcn.004c863a
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4b024d
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
push 0xfffffffffffffff0
push eax
call fcn.004c80c5
pop ecx
pop ecx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x10]
push ebx
push dword [eax + 8]
push dword [esp + 0x3c]
push 0x1f
pop edx
call fcn.004c863a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x3c]
push 0x2a
pop edx
call fcn.004c863a
add esp, 0xc
jmp 0x4b035f
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.004b0dec
mov byte [esp + 0x1b], al
test al, al
je 0x4b02da
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
push ebx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
call fcn.004bfcd0
mov edx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x18], edx
pop ecx
test edx, edx
je 0x4b02da
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x1e], bl
jne 0x4b02da
mov eax, dword [edx + 0xc]
cmp byte [esp + 0x1b], 1
setne cl
mov byte [eax + 0xc], cl
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov byte [eax], 0x98
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004b060f
movzx eax, byte [esp + 0x1b]
mov ecx, edi
mov edx, dword [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x58]
call fcn.004aab4b
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4b031c
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
call fcn.004bf869
jmp 0x4b03f3
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004b0421
cmp dword [esp + 0x14], ebx
jne 0x4b034b
cmp byte [esp + 0x1b], bl
je 0x4b034b
mov eax, dword [esp + 0x38]
xor edx, edx
mov ecx, dword [esp + 0x10]
inc edx
push ebx
push dword [eax + 0x14]
push ebx
call fcn.004c863a
add esp, 0xc
mov ecx, dword [esp + 0x38]
call fcn.004aa845
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.004b05c0
mov edx, dword [esp + 0x40]
mov ecx, edi
push 8
push dword [esp + 0x2c]
mov dword [esp + 0x44], ebx
call fcn.004bd6b0
mov eax, dword [esp + 0x30]
mov edx, esi
push eax
push eax
push dword [ebp + 8]
mov ecx, edi
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [esi]
call fcn.004b35ee
mov edx, dword [esp + 0x7c]
add esp, 0x28
mov ecx, dword [esp + 0x20]
call fcn.004bf869
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
call fcn.004c8567
cmp dword [esp + 0x3c], 0
je 0x4b03c7
mov eax, dword [esp + 0x5c]
mov edx, esi
push dword [ebp + 8]
push dword [eax]
push ecx
mov ecx, edi
call fcn.004b3302
add esp, 0xc
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x10]
call fcn.004c8567
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 8]
cmp byte [eax], 5
jne 0x4b03f3
push dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.004b2fa9
pop ecx
push dword [esp + 0x8c]
push dword [esp + 0x24]
call fcn.004d4cf2
push dword [esp + 0xa4]
push dword [esp + 0x2c]
call fcn.004d4cf2
mov eax, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret