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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x1c]
shl esi, 6
lea esi, [esi + eax + 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
movzx ecx, byte [esi + 0x28]
push edi
lea edi, [ecx*8]
sub edi, ecx
lea eax, [eax + edi*8 + 8]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ebx, eax
shr ebx, 0x19
xor edx, edx
and ebx, 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ebx
test eax, 0x800000
je 0x4ad263
test byte [esp + 0xb0], 0x40
mov dword [esp + 0x28], 1
je 0x4ad267
mov dword [esp + 0x28], edx
mov eax, ebp
call fcn.00484c40
mov dword [esp + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, ebp
call fcn.00484c40
cmp byte [esi + 0x28], 0
mov dword [esp + 0x5c], eax
mov dword [esi + 0x20], eax
jbe 0x4ad2b2
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x15], 8
je 0x4ad2b2
mov eax, dword [esp + 0x10]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
push eax
mov dword [esi + 0xc], eax
push 0
push 0x30
mov eax, ebp
call fcn.00484be0
add esp, 0xc
mov eax, dword [esi]
test eax, 0x8000000
je 0x4ad56d
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 2]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], eax
call fcn.0047e160
add esp, 4
cmp edi, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
jl 0x4ad3d9
jmp 0x4ad309
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jle 0x4ad3c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
nop
cmp dword [edx + ebx*8], eax
je 0x4ad32f
inc ebx
cmp ebx, ecx
jl 0x4ad320
jmp 0x4ad3c0
mov ecx, dword [esp + 0x20]
lea edi, [eax + ecx + 1]
mov eax, dword [esp + 0x18]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x34]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ecx*8]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x10]
push edi
push eax
push edx
mov dword [esp + 0x60], edi
call fcn.004ab330
add esp, 0xc
mov dword [esp + 0x44], eax
cmp eax, edi
je 0x4ad3c0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x4ad3c0
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x28], eax
jg 0x4ad38d
call fcn.00484a60
test eax, eax
jne 0x4ad3c0
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 9
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
cmp ebx, dword [esp + 0x14]
je 0x4ad3d9
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jle 0x4ad305
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
jg 0x4ad3f7
mov edi, ebp
call fcn.00484a60
test eax, eax
jne 0x4ad426
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
jg 0x4ad439
mov edi, ebp
call fcn.00484a60
test eax, eax
jne 0x4ad46a
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
inc ecx
dec edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], edx
jg 0x4ad4a0
mov edi, ebp
call fcn.00484a60
test eax, eax
je 0x4ad4a0
mov ebx, 1
jmp 0x4ad4d7
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax], 0x67
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov byte [ebp + 0x6e], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
push eax
push ebp
mov eax, ebx
call fcn.00484ff0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x4ad53a
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
add edi, 8
add ebx, 4
mov dword [esp + 0x18], eax
cmp byte [ebx], 0
je 0x4ad52d
mov eax, dword [edi]
mov esi, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x1c]
lea eax, [ecx + edx*8]
call fcn.0047fee0
add ebx, 8
add edi, 0xc
sub dword [esp + 0x18], 1
jne 0x4ad510
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov byte [esi + 0x29], 1
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x10]
cmp ecx, dword [eax + 0x38]
mov ebx, eax
jle 0x4ade81
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
jmp 0x4ade81
test eax, 0x1000
je 0x4ad615
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x15]
test al, al
jne 0x4ad58f
inc dword [ecx + 0x48]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x58], edx
jmp 0x4ad59f
dec al
mov byte [ecx + 0x15], al
movzx eax, al
mov ecx, dword [ecx + eax*4 + 0x18]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x34]
push 0
push 3
push edx
push eax
push edi
push ecx
or ebx, 0xffffffff
call fcn.004a1470
mov edx, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ebx, esi
call fcn.004acf20
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x48], eax
push ebx
push 0x26
mov eax, ebp
call fcn.00484be0
mov ecx, dword [esp + 0x50]
push ebx
push ecx
push edi
push 0x2e
mov eax, ebp
call fcn.00484ae0
mov ecx, dword [esp + 0x50]
add esp, 0x40
push ebx
push 0xffffffffffffffff
push edi
call fcn.0047dd50
add esp, 0xc
mov byte [esi + 0x29], 0x18
mov ebx, ecx
jmp 0x4ade81
test eax, 0x2000
je 0x4ad82c
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
push 0
push 0x24
push edx
push esi
push edi
push eax
or ebx, 0xffffffff
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x30], 0
call fcn.004a1470
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x4c]
push 0
push 0x18
push ecx
push esi
push edi
push edx
or ebx, ebx
mov dword [esp + 0x54], eax
call fcn.004a1470
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4ad68b
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], 0
je 0x4ad706
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0xc]
mov esi, ebx
mov byte [esp + 0x20], 0x7b
mov byte [esp + 0x21], 0x37
mov byte [esp + 0x22], 0x46
mov byte [esp + 0x23], 0x6d
call fcn.00486020
movzx ecx, byte [edi]
mov edx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x40]
push esi
push edx
movzx edx, byte [esp + ecx - 0x23]
push eax
push edx
mov eax, ebp
call fcn.00484ae0
push ebx
mov eax, 1
call fcn.0047df80
mov esi, dword [esp + 0x40]
add esp, 0x18
mov edx, ebx
call fcn.0047e130
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
call fcn.0047fee0
mov eax, esi
jmp 0x4ad729
mov eax, dword [esp + 0x2c]
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xffffffbc
add ecx, 0x7a
push edi
push ecx
mov eax, ebp
call fcn.00484be0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x4ad78f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0xc]
mov edi, ebx
mov dword [esp + 0x18], esi
call fcn.004860a0
mov edx, dword [esp + 0x28]
mov al, byte [edx]
cmp al, 0x4d
je 0x4ad76f
cmp al, 0x4b
je 0x4ad76f
xor eax, eax
cmp dword [esp + 0x48], eax
setne al
lea eax, [eax + eax + 0x4b]
mov dword [esp + 0x20], eax
jmp 0x4ad780
xor ecx, ecx
cmp dword [esp + 0x48], ecx
sete cl
lea ecx, [ecx + ecx + 0x4c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.0047fee0
mov eax, esi
mov edx, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
cmp dword [esp + 0x24], 0
mov byte [eax + 0x29], dl
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], esi
jne 0x4ad7c2
cmp dword [esp + 0x14], 0
jne 0x4ad7c2
mov ecx, 1
jmp 0x4ad7c4
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov byte [eax + 0x2a], cl
cmp edi, 0x18
je 0x4ade81
mov eax, ebx
call fcn.0047e110
mov esi, eax
push esi
push edx
push 0x28
mov eax, ebp
mov dword [esp + 0x64], esi
call fcn.00484be0
mov eax, dword [esp + 0x48]
push esi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0047dd50
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push esi
push ecx
push edx
push edi
mov eax, ebp
call fcn.00484ae0
mov eax, dword [ebp + 0x14]
add esp, 0x28
test eax, eax
je 0x4ade81
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x4ade81
test eax, 0x30000
je 0x4adc72
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
mov edx, dword [edx + 8]
mov edx, dword [edx + ecx*4]
xor eax, eax
test byte [esp + 0xb0], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x7a
mov dword [esp + 0x78], 0x36
mov dword [esp + 0x7c], 0x7b
mov dword [esp + 0x80], 0x46
mov dword [esp + 0x84], 0x6d
mov dword [esp + 0x88], 0x37
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x64], 0x3f
mov dword [esp + 0x68], 0x29
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edx
je 0x4ad8e5
test dword [esi], 0x1000000
je 0x4ad8e5
mov edx, dword [esp + 0x50]
cmp dword [edx + 4], ecx
jle 0x4ad8e5
mov eax, 1
mov dword [esp + 0x54], eax
test dword [esi], 0x100000
je 0x4ad923
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
push edx
push edi
push eax
call fcn.004a1470
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
add esp, 0x18
mov eax, 1
test dword [esi], 0x200000
je 0x4ad961
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push 0x24
push edx
push eax
push edi
push ecx
call fcn.004a1470
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
add esp, 0x18
mov eax, 1
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push esi
push edx
call fcn.004ad080
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0x28]
xor edx, edx
add esp, 0x18
cmp byte [edi + ecx], dl
mov dword [esp + 0x38], eax
sete dl
cmp ebx, edx
jne 0x4ad9b9
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], ecx
jmp 0x4ad9c1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
xor ebx, ebx
cmp ecx, ebx
je 0x4ad9d1
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x40], ebx
je 0x4ad9d9
mov dword [esp + 0x40], 1
cmp edx, ebx
je 0x4ad9e7
test byte [edx + 0x10], 0x28
mov dword [esp + 0x44], ebx
je 0x4ad9ef
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x4ad9fb
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x4ada03
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
cmp ecx, ebx
je 0x4ada43
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
mov ebx, edi
mov edi, dword [esp + 0x10]
lea esi, [eax + ebx]
mov eax, dword [edx + 0xc]
call fcn.004860a0
mov eax, dword [esp + 0x20]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.00484be0
mov esi, dword [esp + 0x3c]
add esp, 0xc
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x4ada6a
cmp dword [esp + 0x54], ebx
je 0x4ada6a
add eax, edi
push eax
push ebx
push 0x77
mov eax, ebp
call fcn.00484be0
add esp, 0xc
inc edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push ecx
push edx
call fcn.00487f60
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x5c]
lea ecx, [eax + edx*2]
mov edx, dword [esp + ecx*4 + 0x80]
push edx
mov eax, ebp
call fcn.00484ae0
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
add esp, 0x18
test ecx, ecx
je 0x4adaeb
cmp byte [edi + 0x1e], 0
jne 0x4adaeb
test eax, eax
jge 0x4adacc
mov eax, dword [ebp + 0xc]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.00484f20
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], 0xf2
jmp 0x4adaf9
mov ecx, dword [esp + 0x1c]
mov eax, 0xfffffff2
call fcn.00484f20
cmp dword [esp + 0x4c], 0
mov edi, dword [esp + 0x24]
je 0x4adb53
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov eax, edi
lea esi, [edx + eax]
push esi
mov edx, ebx
call fcn.0047de90
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, ebx
call fcn.004860a0
mov eax, dword [esp + 0x24]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.00484be0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
push ecx
inc edi
push edx
call fcn.00487f60
mov esi, dword [esp + 0x48]
add esp, 0x18
cmp dword [esp + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
jne 0x4adb6b
cmp dword [esp + 0x24], 0
jne 0x4adb6b
xor eax, eax
jmp 0x4adb70
mov eax, 1
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x60]
cmp eax, 0x18
je 0x4adbb5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xfffffffffffffff2
push edi
push eax
mov eax, dword [esp + 0x44]
mov edi, ebp
call fcn.0048aec0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4adbb5
cmp dword [esp + 0x44], ebx
mov ecx, dword [ebp + 0xc]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, dword [esp + 0x10]
call fcn.0047e110
test dword [esi], 0x300000
mov edi, eax
je 0x4adbee
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
push 3
mov eax, ebp
call fcn.00484ae0
mov ecx, dword [esp + 0x6c]
push ecx
push edi
push 0x47
mov eax, ebp
call fcn.00484be0
add esp, 0x1c
mov ebx, dword [esp + 0x10]
mov esi, edi
mov edx, ebx
call fcn.0047e130
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.0047fee0
mov eax, dword [esp + 0x4c]
call fcn.0047fee0
cmp dword [esp + 0x28], 0
jne 0x4adc55
mov eax, ebx
call fcn.0047e110
mov edx, dword [esp + 0x2c]
mov edi, eax
push edi
push edx
push 0x39
mov eax, ebp
mov dword [esp + 0x64], edi
call fcn.00484be0
mov eax, dword [esp + 0x48]
push edi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0047dd50
mov ecx, dword [esp + 0x54]
push edi
push ecx
push 5
mov eax, ebp
call fcn.00484be0
add esp, 0x24
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
mov byte [esi + 0x29], dl
mov dword [esi + 0x2c], eax
jmp 0x4ade81
test eax, 0x10000000
je 0x4ade51
mov ebx, dword [esp + 0x10]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], eax
mov eax, ebp
mov dword [esp + 0x1c], ecx
call fcn.00484c40
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb0]
mov edx, ecx
mov word [esp + 0x6c], cx
mov ecx, 0xe
lea edi, [esp + 0x74]
and eax, 8
mov word [esp + 0x6e], dx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
jne 0x4add03
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [ecx + 1]
push ecx
mov dword [ebx + 0x48], eax
mov dword [esp + 0x2c], eax
push 0
push 0x77
mov eax, ebp
mov dword [esp + 0x50], ecx
call fcn.00484be0
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
xor esi, esi
push esi
push 0x30
mov eax, ebp
call fcn.00484be0
mov edi, dword [esp + 0x60]
add esp, 0xc
cmp dword [edi + 0x14], esi
mov ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], esi
jle 0x4addf7
mov dword [esp + 0x40], esi
mov eax, dword [edi + 0x1c]
add eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x3c]
je 0x4add51
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x4adddc
mov eax, dword [eax]
push 0x70
push 0
push eax
lea ecx, [esp + 0x78]
push ecx
push ebx
call fcn.004ae050
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4adddc
cmp word [esp + 0x20], 0
jne 0x4addc0
mov edx, dword [edi + 0x14]
dec edx
cmp dword [esp + 0x2c], edx
jne 0x4add83
or edi, 0xffffffff
jmp 0x4add87
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx + 0xc]
push ecx
push 0xffffffffffffffff
push eax
push ebx
xor eax, eax
call fcn.004a7990
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x58]
push 0xfffffffffffffff2
push edi
add ecx, 2
push 0x71
mov edi, ebp
call fcn.0048aec0
mov edi, dword [esp + 0x74]
add esp, 0x20
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x2f
mov eax, ebp
call fcn.00484be0
push esi
call fcn.00488070
add esp, 0x10
mov eax, dword [esp + 0x2c]
add dword [esp + 0x40], 0x28
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
jl 0x4add32
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x4ade08
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0x60
mov eax, ebp
call fcn.00484be0
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x4ade37
mov edx, dword [esp + 0x14]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x24]
mov byte [esi + 0x29], 0x19
call fcn.0047fee0
jmp 0x4ade81
mov cl, byte [ebx + 0x55d5e0]
mov edx, dword [esp + 0x2c]
mov byte [esi + 0x29], cl
mov dword [esi + 0x2c], edi
movzx eax, byte [ebx + 0x55d5e4]
push edx
push edi
push eax
mov eax, ebp
call fcn.00484be0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
inc eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x2a], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x4adea7
add edx, 4
mov esi, dword [esp + 0x3c]
cmp dword [edx], esi
je 0x4ae016
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4ade93
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0xb4], eax
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x14]
mov esi, dword [eax + 0x1c]
not edx
and dword [esp + 0xb8], edx
test edi, edi
jle 0x4adf1d
jmp 0x4aded0
test byte [esi + 0x12], 6
jne 0x4adf15
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4adf15
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
mov eax, dword [esi]
je 0x4adf00
test byte [eax + 2], 1
je 0x4adf15
mov ecx, dword [esp + 0x5c]
push 8
push ecx
push eax
push ebx
call fcn.0049d2b0
add esp, 0x10
or byte [esi + 0x12], 4
dec edi
add esi, 0x28
test edi, edi
jg 0x4aded0
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
je 0x4adfd0
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x24], ecx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x28], edx
jg 0x4adf4d
mov edi, ebp
call fcn.00484a60
test eax, eax
jne 0x4adf7d
mov edx, dword [ebp + 0x14]
mov ecx, 1
add dword [ebp + 0xc], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebp, dword [esp + 0x34]
mov edx, ebx
call fcn.0047df30
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x4adfd0
test byte [esi + 0x12], 6
jne 0x4adfc7
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4adfc7
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
push 8
push edx
push eax
push ebx
call fcn.0049d2b0
add esp, 0x10
or byte [esi + 0x12], 4
inc edi
add esi, 0x28
cmp edi, dword [ebp + 0x14]
jl 0x4adf92
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4adffd
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x4adffd
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x4ae027
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4adfe5
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
mov eax, 1
xor edx, edx
call fcn.00517b90
jmp 0x4adeab
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov byte [ecx + 9], 1
pop ebx
add esp, 0x9c
ret