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

Disassembly:
sub esp, 0x4c
mov edx, dword [esp + 0x50]
push ebx
imul ebx, dword [esp + 0x58], 0x50
push ebp
mov eax, dword [edx + 0x20]
mov ebp, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
add ebx, 0x38
add ebx, edx
mov dword [esp + 0x4c], ebp
add eax, 8
mov dword [esp + 0x40], ebx
push esi
xor esi, esi
movzx ecx, byte [ebx + 0x34]
shl ecx, 6
add eax, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], eax
xor ecx, ecx
inc ecx
push edi
mov eax, dword [eax + 0x20]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
shr eax, 0x19
and eax, ecx
mov dword [esp + 0x1c], edi
test dword [ebx], 0x800000
mov dword [esp + 0x14], eax
je 0x482d21
test byte [esp + 0x68], 0x20
mov dword [esp + 0x58], ecx
je 0x482d25
mov dword [esp + 0x58], esi
push edi
call fcn.004af77e
push edi
mov dword [esp + 0x44], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x24], eax
call fcn.004af77e
cmp byte [ebx + 0x34], 0
pop ecx
pop ecx
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x2c], eax
jbe 0x482d6b
mov ecx, dword [esp + 0x44]
test byte [ecx + 0x1c], 8
je 0x482d6b
mov eax, dword [ebp + 0x48]
inc eax
push eax
push esi
push 7
mov dword [ebp + 0x48], eax
push edi
mov dword [ebx + 0x18], eax
call fcn.004a9403
add esp, 0x10
test dword [ebx], 0x8000000
mov edx, dword [esp + 0x70]
je 0x482f7c
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x38], ecx
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 4]
inc dword [ebp + 0x54]
mov dword [esp + 0x34], eax
add eax, 2
push eax
push ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], eax
call fcn.0049d19f
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
inc ecx
mov edx, ecx
mov dword [esp + 0x40], edx
cmp eax, ecx
jl 0x482e29
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x44], ecx
test eax, eax
jle 0x482e14
mov edi, dword [esp + 0x2c]
cmp dword [edi + ecx*8], edx
mov edi, dword [esp + 0x64]
je 0x482de4
inc ecx
mov dword [esp + 0x44], ecx
cmp ecx, eax
jl 0x482dcc
jmp 0x482e14
lea eax, [edi + 1]
add eax, edx
push eax
imul eax, ecx, 0xc
imul ecx, dword [eax + ebx + 8], 0x28
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
mov eax, dword [ecx + eax]
push dword [eax + 0xc]
push ebp
call fcn.00499a6f
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp ecx, eax
je 0x482e21
inc edx
mov dword [esp + 0x40], edx
cmp edx, eax
jle 0x482dc2
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
push dword [esp + 0x64]
push dword [eax + 0x14]
push 7
push edi
call fcn.004a9403
mov eax, dword [esp + 0x74]
inc eax
push eax
mov eax, dword [esp + 0x54]
dec eax
push eax
push 7
push edi
call fcn.004a9403
mov ecx, dword [esp + 0x58]
push 0xfffffffffffffffe
pop eax
push 0xfffffffffffffff5
cmp dword [ecx + 0x1c], esi
pop edx
cmovne eax, edx
push eax
push dword [ecx + 0x18]
mov eax, dword [esp + 0x38]
push dword [esp + 0x8c]
push dword [esp + 0x68]
push eax
push 0x88
push edi
call fcn.004a946f
mov eax, dword [esp + 0x74]
add esp, 0x3c
mov dword [eax + 0x1c], esi
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x482edc
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add edi, 8
mov ebp, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x48], ecx
cmp byte [ecx], 0
je 0x482ec3
imul eax, dword [edi], 0x28
add eax, dword [ebp + 0x20]
push eax
push ebx
call fcn.00485128
mov eax, dword [esp + 0x3c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x48]
add ecx, 8
add edi, 0xc
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
jne 0x482ea7
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
push dword [esp + 0x58]
mov eax, dword [esp + 0x14]
push dword [esp + 0x68]
mov byte [ebx + 0x35], 0x8a
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x1c]
push ebp
mov dword [ebx + 0x3c], eax
call fcn.004a4193
xor eax, eax
inc eax
push eax
push ebp
call fcn.00499955
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
call fcn.0048930d
pop ecx
not eax
not edx
pop ecx
mov ecx, dword [esp + 0x6c]
and ecx, eax
mov eax, dword [esp + 0x70]
and eax, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], eax
test eax, eax
jle 0x4839a4
mov edi, ecx
test byte [edx + 0x12], 6
jne 0x48398c
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x24]
and ecx, edi
and eax, dword [esp + 0x44]
or ecx, eax
je 0x483961
mov eax, dword [esp + 0x60]
xor ecx, ecx
inc ecx
mov byte [eax + 7], cl
jmp 0x483988
test dword [ebx], 0x1000
je 0x482ff3
push ebp
call fcn.0049d1d0
push esi
push 3
push edx
push dword [esp + 0x7c]
mov edi, eax
push 0xffffffffffffffff
push dword [esp + 0x28]
mov dword [esp + 0x40], edi
push dword [esp + 0x34]
call fcn.00487219
push edi
push ebx
push eax
push ebp
call fcn.00482a9d
mov esi, dword [ebx + 0x28]
mov edi, eax
push esi
push edi
push 0x15
push dword [esp + 0x58]
call fcn.004a9403
add esp, 0x40
push edi
push esi
mov esi, dword [esp + 0x18]
push esi
push 0x36
push dword [esp + 0x2c]
call fcn.004a941e
push edi
push 0xffffffffffffffff
push esi
push ebp
call fcn.004999d1
mov edi, dword [esp + 0x40]
add esp, 0x24
mov byte [ebx + 0x35], 0x95
xor esi, esi
jmp 0x482f08
test dword [ebx], 0x2000
je 0x4831ea
push esi
push 0x24
push edx
push dword [esp + 0x78]
mov dword [esp + 0x50], 0x95
push 0xffffffffffffffff
push dword [esp + 0x24]
mov dword [esp + 0x60], esi
push dword [esp + 0x30]
call fcn.00487219
push esi
mov esi, dword [esp + 0x30]
push 0x18
push dword [esp + 0x94]
mov dword [esp + 0x8c], eax
push dword [esp + 0x94]
push 0xffffffffffffffff
push esi
push dword [esp + 0x4c]
call fcn.00487219
mov ecx, dword [esp + 0x4c]
add esp, 0x38
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x48306b
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
jmp 0x48306f
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4830d6
mov esi, dword [eax]
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x3c], 0x302e2f31
push dword [esi + 0xc]
push ebp
call fcn.0049a8e9
movzx ecx, byte [esi]
mov edi, eax
push edi
push dword [esp + 0x4c]
push dword [esp + 0x24]
movzx ecx, byte [esp + ecx + 3]
push ecx
push dword [esp + 0x38]
call fcn.004a941e
xor eax, eax
inc eax
push eax
push edi
push ebp
call fcn.0049998e
push dword [esp + 0x84]
push ebp
call fcn.004a41bc
push dword [esp + 0x98]
push ebx
call fcn.00485128
mov edi, dword [esp + 0x58]
add esp, 0x3c
jmp 0x4830f0
push dword [esp + 0x3c]
test ecx, ecx
push esi
push 0x48
pop eax
push 0x43
pop edx
cmovne eax, edx
push eax
push edi
call fcn.004a9403
add esp, 0x10
mov edx, dword [esp + 0x34]
test edx, edx
je 0x483159
mov esi, dword [edx]
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
push eax
push dword [esi + 0xc]
mov dword [esp + 0x50], eax
push ebp
call fcn.00499a6f
mov al, byte [esi]
add esp, 0xc
cmp al, 0x4f
je 0x483133
cmp al, 0x4d
je 0x483133
cmp dword [esp + 0x14], 0
push 0x4d
pop esi
push 0x4f
pop eax
cmovne esi, eax
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x14]
jmp 0x483146
mov esi, dword [esp + 0x14]
test esi, esi
push 0x50
pop eax
push 0x4e
pop ecx
cmovne eax, ecx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call fcn.00485128
mov edx, dword [esp + 0x3c]
pop ecx
pop ecx
jmp 0x48315d
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x1c]
test esi, esi
push 0x5f
pop eax
mov dword [esp + 0x58], 0x5c
cmovne eax, dword [esp + 0x58]
cmp dword [esp + 0x64], 0
mov byte [ebx + 0x35], al
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
jne 0x483190
test edx, edx
jne 0x483190
xor ecx, ecx
inc ecx
mov byte [ebx + 0x36], cl
mov esi, dword [esp + 0x40]
cmp esi, 0x95
je 0x48395a
push ebp
call fcn.0049d1d0
push eax
push dword [esp + 0x18]
mov dword [esp + 0x30], eax
push 0x41
push edi
call fcn.004a9403
push dword [esp + 0x38]
push 0xffffffffffffffff
push dword [esp + 0x2c]
push ebp
call fcn.004999d1
push dword [esp + 0x48]
push dword [esp + 0x64]
push dword [esp + 0x74]
push esi
push edi
call fcn.004a941e
push 0x6b
push edi
call fcn.004a97c6
add esp, 0x40
jmp 0x482fec
test dword [ebx], 0x30000
je 0x483631
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], esi
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x48], eax
xor eax, eax
inc eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], edx
test byte [esp + 0x68], al
je 0x48323d
test dword [ebx], 0x1000000
je 0x48323d
cmp dword [edx + 4], ecx
jle 0x48323d
mov dword [esp + 0x50], eax
jmp 0x48323f
mov eax, esi
test dword [ebx], 0x100000
je 0x483271
push edx
push 0x18
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x58]
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00487219
mov edx, dword [esp + 0x60]
add esp, 0x1c
mov dword [esp + 0x20], eax
xor eax, eax
inc eax
test dword [ebx], 0x200000
je 0x48329f
push edx
push 0x24
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x58]
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00487219
mov dword [esp + 0x50], eax
add esp, 0x1c
xor eax, eax
inc eax
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x28]
push ebx
push ebp
call fcn.004826dc
push dword [esp + 0x44]
mov dword [esp + 0x4c], eax
push dword [ebp]
call fcn.00498423
mov ecx, dword [esp + 0x68]
add esp, 0x24
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
cmp eax, dword [ecx + 4]
jge 0x483306
mov ecx, dword [ecx + 0x28]
xor edx, edx
cmp byte [eax + ecx], dl
sete dl
cmp dword [esp + 0x14], edx
jne 0x483306
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edx
jmp 0x48330e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x48331c
test byte [edx + 0x10], 0x28
mov dword [esp + 0x48], esi
je 0x483324
mov dword [esp + 0x48], 1
test ecx, ecx
je 0x483337
test byte [ecx + 0x10], 0x28
jne 0x483337
xor ecx, ecx
mov dword [esp + 0x54], esi
inc ecx
jmp 0x48333e
xor ecx, ecx
inc ecx
mov dword [esp + 0x54], ecx
test edx, edx
jne 0x483382
test eax, eax
jg 0x483382
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], eax
cmp dword [esp + 0x50], esi
je 0x483406
add eax, dword [esp + 0x2c]
push eax
push esi
push 0xa
push edi
call fcn.004a9403
mov eax, dword [esp + 0x74]
xor ecx, ecx
inc eax
mov dword [esp + 0x58], esi
add esp, 0x10
mov dword [esp + 0x38], eax
inc ecx
mov dword [esp + 0x44], ecx
jmp 0x48340a
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], eax
test edx, edx
je 0x48334e
mov eax, dword [edx]
mov esi, dword [esp + 0x2c]
add esi, dword [esp + 0x64]
push esi
mov eax, dword [eax + 0xc]
push eax
push ebp
mov dword [esp + 0x44], eax
call fcn.00499a6f
push dword [esp + 0x4c]
push esi
push dword [esp + 0x4c]
push edi
call fcn.00499dc5
mov eax, dword [esp + 0x44]
add esp, 0x1c
mov esi, dword [esp + 0x64]
test eax, eax
je 0x4833fd
movzx eax, byte [eax + esi]
push eax
push dword [esp + 0x3c]
call fcn.0049727c
pop ecx
cmp al, 0x62
mov eax, dword [esp + 0x2c]
pop ecx
jne 0x4833e1
mov byte [eax + esi], 0x62
movzx eax, byte [eax + esi]
push eax
push dword [esp + 0x3c]
call fcn.0049b351
pop ecx
pop ecx
test eax, eax
je 0x4833fd
mov eax, dword [esp + 0x28]
mov byte [eax + esi], 0x62
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
jmp 0x48340e
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
push dword [esp + 0x28]
push eax
push dword [esp + 0x34]
push ebp
call fcn.0048283e
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x5c]
push dword [esp + 0x40]
push dword [esp + 0x58]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x58]
movzx eax, byte [ecx + eax*2 + 0x4e261c]
push eax
push edi
call fcn.004a94a0
mov eax, dword [esp + 0x48]
add esp, 0x28
mov dword [esp + 0x50], esi
test eax, eax
je 0x4834ee
mov eax, dword [eax]
add esi, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
xor eax, eax
inc eax
push eax
push esi
push ebp
call fcn.0049998e
push esi
push dword [esp + 0x48]
push ebp
call fcn.00499a6f
push dword [esp + 0x58]
push esi
push dword [esp + 0x58]
push edi
call fcn.00499dc5
mov eax, dword [esp + 0x58]
add esp, 0x28
mov esi, dword [esp + 0x64]
test eax, eax
je 0x4834d8
movzx eax, byte [eax + esi]
push eax
push dword [esp + 0x3c]
call fcn.0049727c
pop ecx
cmp al, 0x62
mov eax, dword [esp + 0x34]
pop ecx
jne 0x4834bc
mov byte [eax + esi], 0x62
movzx eax, byte [eax + esi]
push eax
push dword [esp + 0x3c]
call fcn.0049b351
pop ecx
test eax, eax
mov eax, dword [esp + 0x34]
pop ecx
je 0x4834d8
mov byte [eax + esi], 0x62
push eax
lea ecx, [esi + 1]
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x5c], ecx
push ebp
call fcn.0048283e
add esp, 0x10
push dword [esp + 0x28]
push dword [ebp]
call fcn.00498232
push dword [esp + 0x38]
push dword [ebp]
call fcn.00498232
mov eax, dword [edi + 0x1c]
add esp, 0x10
cmp dword [esp + 0x20], 0
mov dword [ebx + 0x3c], eax
jne 0x48351e
test esi, esi
jne 0x48351e
mov ecx, esi
jmp 0x483525
xor eax, eax
xor esi, esi
lea ecx, [eax + 1]
mov eax, dword [esp + 0x14]
inc eax
imul eax, ecx
movzx eax, byte [eax + 0x4e2624]
cmp eax, 0x95
je 0x48356b
push dword [esp + 0x50]
mov edx, dword [esp + 0x30]
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
push edi
call fcn.004a94a0
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x2c]
setne al
movzx eax, al
push eax
push edi
call fcn.004a97c6
add esp, 0x20
push ebp
call fcn.0049d1d0
test dword [ebx], 0x300000
pop ecx
mov dword [esp + 0x54], eax
je 0x4835a7
mov ecx, dword [esp + 0x64]
push eax
push ecx
push dword [esp + 0x44]
push 0x1d
push edi
call fcn.004a941e
push dword [esp + 0x60]
push dword [esp + 0x6c]
push 0x49
push edi
call fcn.004a9403
mov eax, dword [esp + 0x78]
add esp, 0x24
push eax
push ebp
call fcn.004a41bc
push dword [esp + 0x3c]
push ebx
call fcn.00485128
push dword [esp + 0x30]
push ebx
call fcn.00485128
add esp, 0x18
cmp dword [esp + 0x58], 0
jne 0x483606
push ebp
call fcn.0049d1d0
push eax
push dword [esp + 0x44]
mov dword [esp + 0x30], eax
push 0x63
push edi
call fcn.004a9403
push dword [esp + 0x38]
push 0xffffffffffffffff
push dword [esp + 0x2c]
push ebp
call fcn.004999d1
push dword [esp + 0x48]
push dword [esp + 0x38]
push 0x32
push edi
call fcn.004a9403
add esp, 0x34
test dword [ebx], 0x4000000
je 0x483614
mov byte [ebx + 0x35], 0x95
jmp 0x483625
cmp dword [esp + 0x14], 0
push 0x5f
pop eax
push 0x5c
pop ecx
cmovne eax, ecx
mov byte [ebx + 0x35], al
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x38], eax
jmp 0x482f08
test dword [ebx], 0x10000000
je 0x483921
inc dword [ebp + 0x48]
mov eax, dword [ebp + 0x48]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
call fcn.004af77e
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x10]
pop ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov byte [ebx + 0x35], 3
mov dword [esp + 0x2c], esi
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x30], esi
cmp eax, 1
jle 0x48378b
sub eax, dword [esp + 0x64]
dec eax
mov dword [esp + 0x34], eax
shl eax, 6
add eax, 0x48
push eax
push dword [ebp]
call fcn.00498289
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4836bc
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
jmp 0x483a1e
mov edx, dword [esp + 0x34]
lea edi, [ecx + 8]
mov esi, dword [esp + 0x44]
push 0x10
lea eax, [edx + 1]
mov word [ecx + 2], ax
mov word [ecx], ax
mov eax, dword [esp + 0x64]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
add eax, 8
mov dword [esp + 0x20], eax
xor eax, eax
inc eax
cmp edx, eax
jl 0x48371e
mov eax, dword [esp + 0x3c]
lea ecx, [ebx + 0x84]
mov ebp, dword [esp + 0x20]
add eax, 0x48
mov ebx, ecx
movzx esi, byte [ebx]
mov edi, eax
shl esi, 6
lea ebx, [ebx + 0x50]
push 0x10
add esi, ebp
add eax, 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
dec edx
jne 0x4836fe
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
xor esi, esi
and dword [esp + 0x68], 8
jne 0x48374a
mov eax, dword [ebp + 0x48]
inc eax
push eax
push esi
push 0xa
lea ecx, [eax + 1]
mov dword [esp + 0x5c], eax
push edi
mov dword [esp + 0x68], ecx
mov dword [ebp + 0x48], ecx
call fcn.004a9403
add esp, 0x10
push dword [esp + 0x38]
push esi
push 7
push edi
call fcn.004a9403
mov dword [esp + 0x30], eax
xor ecx, ecx
mov eax, dword [esp + 0x28]
inc ecx
add esp, 0x10
cmp dword [eax + 0x18], ecx
jle 0x483794
push esi
push esi
push 0x45
push dword [ebp]
call fcn.00499569
mov ecx, dword [esp + 0x84]
mov edx, eax
add esp, 0x10
mov dword [esp + 0x30], edx
mov dword [edx + 0xc], ecx
jmp 0x483796
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
jmp 0x483724
mov edx, esi
mov eax, dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0x34], esi
cmp dword [eax + 0x18], esi
jle 0x4838b3
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
imul ecx, ecx, 0x28
add ecx, dword [edi + 0x20]
mov edi, dword [esp + 0x1c]
cmp dword [ecx + 8], eax
je 0x4837d3
mov ebx, 0x200
cmp word [ecx + 0x10], bx
mov ebx, dword [esp + 0x48]
jne 0x483899
mov eax, dword [ecx]
test edx, edx
je 0x4837de
mov dword [edx + 8], eax
mov eax, edx
push 0xf0
push esi
push esi
push eax
push dword [esp + 0x4c]
push ebp
call fcn.004b281f
add esp, 0x18
mov dword [esp + 0x54], eax
test eax, eax
je 0x483895
movzx ecx, byte [ebx + 0x34]
push esi
push ecx
push dword [esp + 0x6c]
lea ecx, [eax + 0x38]
push ecx
push dword [esp + 0x4c]
push ebp
call fcn.004859bf
add esp, 0x18
cmp word [esp + 0x68], 0
jne 0x483866
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
mov eax, dword [eax + 0x18]
dec eax
cmp esi, eax
pop eax
push dword [esp + 0x58]
cmove esi, eax
push dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 0xc]
push ebp
call fcn.00499b23
push esi
push eax
mov eax, dword [edi + 0x1c]
add eax, 2
push eax
push dword [esp + 0x70]
push 0x72
push edi
call fcn.004a94a0
add esp, 0x2c
xor esi, esi
push dword [esp + 0x28]
push dword [esp + 0x3c]
push 2
push edi
call fcn.004a9403
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
push 1
pop edx
cmp byte [eax + 7], 0
push eax
cmovne ecx, edx
mov dword [esp + 0x40], ecx
call fcn.004b315e
add esp, 0x14
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [edx + 0x18]
mov edx, dword [esp + 0x30]
jl 0x4837ad
mov eax, dword [esp + 0x30]
push eax
push dword [ebp]
call fcn.00498232
push dword [edi + 0x1c]
push dword [esp + 0x2c]
push edi
call fcn.004a962b
push dword [ebx + 0x24]
xor eax, eax
push esi
inc eax
push eax
push edi
call fcn.004a9403
push dword [esp + 0x4c]
push edi
call fcn.004b0b7e
mov eax, dword [esp + 0x8c]
xor ecx, ecx
inc ecx
add esp, 0x2c
cmp dword [eax + 0x1c], ecx
jle 0x483905
push dword [esp + 0x3c]
push dword [ebp]
call fcn.00498232
pop ecx
pop ecx
cmp dword [esp + 0x2c], 0
jne 0x482f08
push dword [esp + 0x14]
push ebx
call fcn.00485128
pop ecx
pop ecx
jmp 0x482f08
mov ecx, dword [esp + 0x14]
push dword [esp + 0x3c]
mov al, byte [ecx + 0x4e2908]
mov byte [ebx + 0x35], al
mov eax, dword [esp + 0x14]
push eax
mov dword [ebx + 0x38], eax
movzx eax, byte [ecx + 0x4e290c]
push eax
push edi
call fcn.004a9403
add esp, 0x10
inc eax
mov dword [ebx + 0x3c], eax
xor eax, eax
inc eax
mov byte [ebx + 0x36], al
jmp 0x482f08
xor esi, esi
jmp 0x482f0c
mov eax, dword [edx]
cmp dword [ebx + 0x18], esi
je 0x483970
xor ecx, ecx
inc ecx
test byte [eax + 2], cl
je 0x483988
push 8
push dword [esp + 0x50]
push eax
push ebp
call fcn.0049abe9
mov edx, dword [esp + 0x68]
add esp, 0x10
or byte [edx + 0x12], 4
mov eax, dword [esp + 0x64]
dec eax
add edx, 0x28
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], edx
test eax, eax
jg 0x482f4f
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 0x18], 0
je 0x483a0a
mov eax, dword [edi + 0x1c]
push dword [ebx + 0x18]
mov dword [ebx + 0x30], eax
xor eax, eax
inc eax
push eax
push 7
push edi
call fcn.004a9403
push ebp
call fcn.0049992b
mov ebx, dword [esp + 0x2c]
add esp, 0x14
mov edi, dword [ebx + 0x20]
cmp dword [ebx + 0x18], esi
jle 0x483a0a
test byte [edi + 0x12], 6
jne 0x483a01
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
and ecx, dword [esp + 0x48]
and eax, dword [esp + 0x44]
or ecx, eax
jne 0x483a01
push 8
push dword [esp + 0x50]
push dword [edi]
push ebp
call fcn.0049abe9
add esp, 0x10
or byte [edi + 0x12], 4
inc esi
add edi, 0x28
cmp esi, dword [ebx + 0x18]
jl 0x4839d4
push dword [esp + 0x24]
push ebp
call fcn.004a41bc
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret