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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], ecx
call fcn.0044b920
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x10]
mov edx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
mov edi, dword [edx + 0x40]
shl ecx, 4
add ecx, eax
xor edx, edx
mov ebx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
cmp ebx, ecx
jae 0x481ae5
mov dword [esp + 0x20], 1
mov eax, dword [edi]
or eax, dword [edi + 4]
mov esi, dword [ebx]
jne 0x481966
test byte [ebx + 0x14], 2
jne 0x481966
test byte [esi + 4], 1
jne 0x481966
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x5c]
push esi
push eax
mov byte [esp + 0x78], 3
mov dword [esp + 0x64], 0x44b490
mov dword [esp + 0x68], 0x44b5a0
mov dword [esp + 0x7c], edx
call fcn.00447540
add esp, 8
cmp byte [esp + 0x70], 0
je 0x481966
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
push 0
push esi
push eax
call fcn.0044a690
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push edx
call fcn.0044a1a0
add esp, 0x14
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 0x10]
cmp edx, dword [eax + 0x30]
jne 0x481ad0
test byte [ebx + 0x12], 0x82
je 0x481ad0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x481ad0
mov eax, dword [ebx + 0xc]
test eax, eax
js 0x481ad0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
mov esi, dword [ebx]
lea eax, [eax + eax*2]
mov dl, byte [ecx + eax*8 + 0x15]
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
call fcn.00449ac0
add esp, 4
test eax, eax
je 0x481ad0
cmp dword [ebx + 0xc], 0x40
jl 0x4819db
xor esi, esi
mov dword [esp + 0x54], connect
jmp 0x4819f0
mov ecx, dword [ebx + 0xc]
mov eax, 1
xor edx, edx
call fcn.0050e6c0
mov esi, eax
mov dword [esp + 0x54], edx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x50], esi
jne 0x481a26
mov eax, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov ecx, dword [edx + ecx*8]
mov edx, dword [eax]
push ecx
push edx
push 0x552470
push 0x11c
call fcn.0041a1c0
add esp, 0x10
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x54]
and ecx, dword [esp + 0x4c]
mov eax, esi
and eax, dword [esp + 0x48]
or eax, ecx
jne 0x481ad0
movzx edx, word [edi + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
cmp edx, dword [esp + 0x20]
jge 0x481ab1
mov eax, dword [esp + 0x20]
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x40], eax
add eax, eax
add eax, eax
push 0
push eax
mov esi, ecx
call fcn.004184b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4825a3
movzx ecx, word [edi + 0x2c]
mov edx, dword [edi + 0x30]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push esi
call fcn.004f8b20
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x38]
add esp, 0xc
cmp eax, ecx
je 0x481aa1
mov ecx, dword [esp + 0x28]
call fcn.00418230
mov dx, word [esp + 0x40]
mov dword [edi + 0x30], esi
mov esi, dword [esp + 0x50]
mov word [edi + 0x2c], dx
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x30]
mov edx, dword [esp + 0x54]
inc dword [esp + 0x20]
or dword [esp + 0x48], esi
mov dword [ecx + eax*4], ebx
inc eax
or dword [esp + 0x4c], edx
mov dword [esp + 0x14], eax
add ebx, 0x30
cmp ebx, dword [esp + 0x30]
jb 0x4818d7
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
mov word [edi + 0x28], ax
mov word [edi + 0x18], ax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x24], 0x4241
movzx eax, word [eax + 0x22]
mov edi, dword [ecx + 0x44]
not edx
not esi
and esi, dword [ecx + 0x40]
or edx, 0x80000000
and edx, edi
mov ecx, 0x3f
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], eax
cmp cx, ax
jge 0x481b2f
mov eax, ecx
jmp 0x481b30
cwde
xor ebx, ebx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x481b63
lea ebx, [ebx]
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.0050e6c0
and edx, dword [esp + 0x54]
and eax, esi
or eax, edx
je 0x481b5c
inc dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x481b40
and edi, 0x80000000
xor eax, eax
or eax, edi
je 0x481b80
movsx edx, word [esp + 0x40]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx - 0x3f]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
inc edx
movzx edi, dx
movsx ebx, di
lea eax, [ebx*4 + 7]
and eax, 0xfffffff8
lea ecx, [ebx + ebx*4 + 9]
mov dword [esp + 0x40], eax
and ecx, 0xfffffff8
lea eax, [ecx + eax + 0x38]
cdq
push edx
push eax
mov dword [esp + 0x28], eax
call fcn.004184b0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4825a3
mov edx, dword [esp + 0x20]
push edx
mov esi, eax
push 0
push esi
call fcn.004f8f00
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
lea eax, [esi + 0x38]
mov dword [esi + 0x20], eax
add eax, dword [esp + 0x4c]
mov word [esi + 0x30], di
mov dword [esi + 8], eax
lea eax, [eax + ebx*2 + 2]
mov dword [esi + 4], eax
lea eax, [eax + ebx*2]
mov dword [esi + 0x1c], eax
xor eax, eax
dec edi
mov word [esi + 0x2e], di
mov dword [ecx + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x55248c
mov dword [esi + 0xc], edx
mov edi, dword [eax + 0x14]
add esp, 0xc
cmp edi, dword [esp + 0x30]
jae 0x481dab
jmp 0x481c30
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0x10]
cmp ecx, dword [edx + 0x30]
jne 0x481d9e
test byte [edi + 0x12], 0x82
je 0x481d9e
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x481d9e
mov eax, dword [edi + 0xc]
test eax, eax
js 0x481d9e
mov esi, dword [edi]
mov ecx, edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 4]
lea eax, [eax + eax*2]
mov dl, byte [ecx + eax*8 + 0x15]
mov eax, dword [esi + 0xc]
mov byte [esp + 0x13], dl
call fcn.00449750
mov bl, al
mov eax, dword [esi + 0x10]
test eax, eax
je 0x481ca8
call fcn.00449750
test al, al
je 0x481cbd
test bl, bl
je 0x481cc1
cmp al, 0x43
jge 0x481ca4
cmp bl, 0x43
jl 0x481cc9
mov bl, 0x43
jmp 0x481ccb
test dword [esi + 4], 0x800
je 0x481cc5
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
jmp 0x481c8e
test bl, bl
je 0x481cc9
add bl, al
jmp 0x481ccb
test bl, bl
jne 0x481ccb
mov bl, 0x41
movsx eax, bl
sub eax, 0x41
je 0x481cf4
dec eax
je 0x481ce2
xor eax, eax
cmp byte [esp + 0x13], 0x43
setge al
jmp 0x481cec
xor eax, eax
cmp byte [esp + 0x13], 0x42
sete al
test eax, eax
je 0x481d9e
mov ecx, dword [edi + 0xc]
cmp ecx, 0x40
jl 0x481d05
xor eax, eax
mov edx, connect
jmp 0x481d11
mov eax, 1
xor edx, edx
call fcn.0050e6c0
mov ecx, eax
and ecx, dword [esp + 0x48]
mov esi, edx
and esi, dword [esp + 0x4c]
or ecx, esi
jne 0x481d9e
or dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
or dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov ecx, dword [edi]
mov ax, word [edi + 0xc]
mov esi, dword [esp + 0x20]
mov word [edx + esi*2], ax
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov eax, 0x100
test dword [ecx + 4], eax
je 0x481d54
mov edx, dword [ebp + 8]
push edx
jmp 0x481d76
test esi, esi
je 0x481d63
test dword [esi + 4], eax
je 0x481d63
mov eax, dword [ebp + 8]
push eax
jmp 0x481d74
mov ebx, dword [ebp + 8]
push ebx
call fcn.00449900
add esp, 4
test eax, eax
jne 0x481d82
push ebx
mov ecx, esi
call fcn.00449900
add esp, 4
test eax, eax
je 0x481d86
mov eax, dword [eax]
jmp 0x481d8b
mov eax, 0x552498
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x20], ecx
add edi, 0x30
cmp edi, dword [esp + 0x30]
jb 0x481c30
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x481df3
mov esi, dword [esp + 0x18]
jmp 0x481dc0
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.0050e6c0
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
or eax, edx
je 0x481dec
mov eax, dword [esi + 4]
mov word [eax + edi*2], bx
mov ecx, dword [esi + 0x20]
mov dword [ecx + edi*4], 0x5524a0
inc edi
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x481dc0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 0x18]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x481e3b
mov ecx, dword [esp + 0x2c]
mov eax, 0x3f
cmp ax, word [ecx + 0x22]
jge 0x481e3b
jmp 0x481e20
mov esi, dword [edx + 4]
mov word [esi + edi*2], ax
mov esi, dword [edx + 0x20]
mov dword [esi + edi*4], 0x5524a8
movsx esi, word [ecx + 0x22]
inc eax
inc edi
cmp eax, esi
jl 0x481e20
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
or edx, 0xffffffff
mov word [ecx + edi*2], dx
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + edi*4], 0x5524b0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov edi, dword [esp + 0x34]
mov dword [ecx + 8], edx
inc dword [eax + 0x44]
mov eax, dword [ecx + 8]
mov esi, dword [edi + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x40], eax
cmp dword [esi + 0x54], eax
jg 0x481ee8
mov eax, dword [esi + 0x54]
test eax, eax
je 0x481e87
add eax, eax
jmp 0x481e8c
mov eax, 0x33
mov ebx, dword [edi + 4]
lea ecx, [eax + eax*4]
mov eax, dword [esi]
add ecx, ecx
add ecx, ecx
push 0
push ecx
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x481f14
mov eax, dword [esi]
test eax, eax
je 0x481ec8
cmp ebx, dword [eax + 0x114]
jb 0x481ec8
cmp ebx, dword [eax + 0x118]
jae 0x481ec8
movzx ecx, word [eax + 0xf8]
jmp 0x481ed4
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x40]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], ebx
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x38
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
push edx
push esi
call fcn.00459e30
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
add esp, 8
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x481f79
cmp byte [edx + 0x41], 0
jne 0x481f79
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4 - 5]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.00437440
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x10], 0
jne 0x481f6c
mov dword [ebx + 0x10], 0
mov byte [ebx + 1], 0
jmp 0x481f87
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], 0xfa
jmp 0x481f87
mov ecx, dword [esp + 0x30]
mov eax, 0xfffffffa
call fcn.00437440
inc dword [esi + 0x64]
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [ecx + 0x2c]
mov esi, dword [edi + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
add edx, edx
test byte [eax + edx*8 + 0x30], 4
lea eax, [eax + edx*8 + 8]
mov dword [esp + 0x28], eax
je 0x482122
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], eax
cmp dword [esi + 0x54], eax
jg 0x48203a
mov eax, dword [esi + 0x54]
test eax, eax
je 0x481fd9
add eax, eax
jmp 0x481fde
mov eax, 0x33
mov ebx, dword [edi + 4]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push 0
push eax
mov eax, dword [esi]
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x482065
mov eax, dword [esi]
test eax, eax
je 0x48201a
cmp ebx, dword [eax + 0x114]
jb 0x48201a
cmp ebx, dword [eax + 0x118]
jae 0x48201a
movzx ecx, word [eax + 0xf8]
jmp 0x482026
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x40]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], ebx
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov word [eax], 0x11
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0x54], esi
jg 0x4820e4
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x48207f
add eax, eax
jmp 0x482084
mov eax, 0x33
mov ebx, dword [edi + 4]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push 0
push eax
mov eax, dword [ecx]
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x482114
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
test eax, eax
je 0x4820c4
cmp ebx, dword [eax + 0x114]
jb 0x4820c4
cmp ebx, dword [eax + 0x118]
jae 0x4820c4
movzx ecx, word [eax + 0xf8]
jmp 0x4820d0
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x30]
shr edx, 4
mov dword [eax + 0x54], edx
mov dword [edi + 4], ebx
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x14
mov dword [esp + 0x14], esi
jmp 0x4821d0
mov esi, 1
mov dword [esp + 0x14], esi
jmp 0x4821d0
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ecx
cmp dword [esi + 0x54], ecx
jg 0x4821a5
mov eax, dword [esi + 0x54]
test eax, eax
je 0x482140
add eax, eax
jmp 0x482145
mov eax, 0x33
mov ebx, dword [edi + 4]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
push 0
push eax
mov eax, dword [esi]
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x482243
mov eax, dword [esi]
test eax, eax
je 0x482185
cmp ebx, dword [eax + 0x114]
jb 0x482185
cmp ebx, dword [eax + 0x118]
jae 0x482185
movzx ecx, word [eax + 0xf8]
jmp 0x482191
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov ecx, dword [esp + 0x40]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], ebx
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x6d
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x1c], 0
je 0x482311
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x6c]
lea edx, [ecx + 1]
mov dword [eax + 0x6c], edx
lea edx, [ecx - 1]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test ecx, edx
jne 0x4822d9
mov ebx, dword [eax + 0x70]
mov esi, dword [eax]
mov eax, ecx
lea ecx, [eax*8 + 4]
push 0
push ecx
mov eax, esi
call fcn.00418550
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4822c8
test ebx, ebx
je 0x4822c8
test esi, esi
je 0x482270
cmp dword [esi + 0x208], eax
je 0x48224a
mov eax, ebx
mov ecx, esi
call fcn.004181f0
jmp 0x4822c8
mov ecx, 1
jmp 0x4821cc
cmp ebx, dword [esi + 0x114]
jb 0x482270
cmp ebx, dword [esi + 0x118]
jae 0x482270
mov edx, dword [esi + 0x110]
mov dword [ebx], edx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], ebx
jmp 0x4822c8
cmp dword [0x54c250], 0
je 0x4822be
mov eax, dword [0x55ba68]
test eax, eax
je 0x48228c
push eax
call dword [0x54c2a4]
add esp, 4
push ebx
call dword [0x54c280]
sub dword [0x55b8b8], eax
dec dword [0x55b8dc]
add esp, 4
push ebx
call dword [0x54c278]
mov eax, dword [0x55ba68]
add esp, 4
test eax, eax
je 0x4822c8
push eax
call dword [0x54c2ac]
jmp 0x4822c5
push ebx
call dword [0x54c278]
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x70], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x4822e7
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
or eax, 0xffffffff
sub eax, ecx
push 0x10
push eax
push edx
push esi
mov dword [esp + 0x4c], eax
call fcn.0044ec20
mov eax, dword [esp + 0x48]
add esp, 0x10
or dword [eax + 0x24], 0x20000
jmp 0x482314
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x13]
test al, al
jne 0x482327
inc dword [esi + 0x48]
mov eax, dword [esi + 0x48]
mov dword [esp + 0x2c], eax
jmp 0x482337
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov edx, dword [esi + ecx*4 + 0x18]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov esi, dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.0045bdd0
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x18]
add esp, 0x20
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
cmp dword [esi + 0x54], eax
jg 0x4823de
mov eax, dword [esi + 0x54]
test eax, eax
je 0x48237d
add eax, eax
jmp 0x482382
mov eax, 0x33
mov ebx, dword [edi + 4]
lea edx, [eax + eax*4]
mov eax, dword [esi]
add edx, edx
add edx, edx
push 0
push edx
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x482409
mov eax, dword [esi]
test eax, eax
je 0x4823be
cmp ebx, dword [eax + 0x114]
jb 0x4823be
cmp ebx, dword [eax + 0x118]
jae 0x4823be
movzx ecx, word [eax + 0xf8]
jmp 0x4823ca
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x40]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], ebx
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x38]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x6f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48241b
mov eax, dword [edi + 0x20]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 0x10
cmp dword [esp + 0x1c], 0
je 0x482442
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x3c]
js 0x48243b
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x48243b
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
dec eax
mov dword [ecx + 0x58], eax
mov ecx, dword [esp + 0x28]
test byte [ecx + 0x28], 4
je 0x482613
mov esi, dword [esp + 0x34]
mov edx, ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00481790
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
add esp, 4
mov dword [esp + 0x40], eax
cmp dword [edi + 0x54], eax
jg 0x4824e9
mov eax, dword [edi + 0x54]
test eax, eax
je 0x482488
add eax, eax
jmp 0x48248d
mov eax, 0x33
mov ebx, dword [esi + 4]
lea edx, [eax + eax*4]
mov eax, dword [edi]
add edx, edx
add edx, edx
push 0
push edx
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x482510
mov eax, dword [edi]
test eax, eax
je 0x4824c9
cmp ebx, dword [eax + 0x114]
jb 0x4824c9
cmp ebx, dword [eax + 0x118]
jae 0x4824c9
movzx ecx, word [eax + 0xf8]
jmp 0x4824d5
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x40]
shr edx, 4
mov dword [edi + 0x54], edx
mov dword [esi + 4], ebx
mov ecx, dword [esi + 4]
inc dword [esi + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xe
mov eax, dword [esp + 0x28]
and dword [eax + 0x28], 0xfffffffb
mov edi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 4]
test edx, edx
je 0x482530
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 - 0x11], 3
mov eax, dword [edi + 0x20]
cmp eax, ecx
jbe 0x482541
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
mov esi, dword [esp + 0x2c]
dec eax
mov dword [ecx + 0x58], eax
mov eax, dword [ebp + 8]
test esi, esi
je 0x48257f
mov bl, byte [eax + 0x13]
cmp bl, 8
jae 0x48257f
xor ecx, ecx
lea edx, [eax + 0x74]
cmp dword [edx + 0xc], esi
je 0x4826cf
inc ecx
add edx, 0x14
cmp ecx, 0xa
jl 0x482563
movzx edx, bl
mov dword [eax + edx*4 + 0x18], esi
inc byte [eax + 0x13]
call fcn.0044ce10
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jbe 0x482599
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
dec eax
mov dword [ecx + 0x58], eax
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov edi, dword [edx]
test esi, esi
je 0x482832
test dword [esi + 4], 0x4000
jne 0x48277d
mov eax, dword [esi + 0xc]
push eax
push edi
call fcn.0044a550
mov ecx, dword [esi + 0x10]
push ecx
push edi
call fcn.0044a550
add esp, 0x10
test dword [esi + 4], 0x10000
je 0x482756
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x482756
test edi, edi
je 0x4826fe
cmp dword [edi + 0x208], 0
je 0x4826d8
mov eax, ebx
mov ecx, edi
call fcn.004181f0
jmp 0x482756
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
cmp dword [esi + 0x54], eax
jg 0x48269c
mov eax, dword [esi + 0x54]
test eax, eax
je 0x482637
add eax, eax
jmp 0x48263c
mov eax, 0x33
mov ebx, dword [edi + 4]
lea edx, [eax + eax*4]
mov eax, dword [esi]
add edx, edx
add edx, edx
push 0
push edx
call fcn.00418550
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48251a
mov eax, dword [esi]
test eax, eax
je 0x48267c
cmp ebx, dword [eax + 0x114]
jb 0x48267c
cmp ebx, dword [eax + 0x118]
jae 0x48267c
movzx ecx, word [eax + 0xf8]
jmp 0x482688
push ebx
call dword [0x54c280]
mov ecx, eax
add esp, 4
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x40]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], ebx
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x3c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
lea edx, [ecx + 1]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 8
jmp 0x48251e
mov byte [edx + 6], 1
jmp 0x48257f
cmp ebx, dword [edi + 0x114]
jb 0x4826fe
cmp ebx, dword [edi + 0x118]
jae 0x4826fe
mov edx, dword [edi + 0x110]
mov dword [ebx], edx
dec dword [edi + 0xfc]
mov dword [edi + 0x110], ebx
jmp 0x482756
cmp dword [0x54c250], 0
je 0x48274c
mov eax, dword [0x55ba68]
test eax, eax
je 0x48271a
push eax
call dword [0x54c2a4]
add esp, 4
push ebx
call dword [0x54c280]
sub dword [0x55b8b8], eax
dec dword [0x55b8dc]
add esp, 4
push ebx
call dword [0x54c278]
mov eax, dword [0x55ba68]
add esp, 4
test eax, eax
je 0x482756
push eax
call dword [0x54c2ac]
jmp 0x482753
push ebx
call dword [0x54c278]
add esp, 4
test dword [esi + 4], 0x800
je 0x482770
mov eax, dword [esi + 0x14]
push 1
push eax
push edi
call fcn.0046b6a0
add esp, 0xc
jmp 0x48277d
mov ecx, dword [esi + 0x14]
push ecx
push edi
call fcn.0044b2e0
add esp, 8
test dword [esi + 4], 0x8000
jne 0x482832
test edi, edi
je 0x4827d2
cmp dword [edi + 0x208], 0
je 0x4827a7
mov eax, esi
mov ecx, edi
call fcn.004181f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, dword [edi + 0x114]
jb 0x4827d2
cmp esi, dword [edi + 0x118]
jae 0x4827d2
mov edx, dword [edi + 0x110]
mov dword [esi], edx
dec dword [edi + 0xfc]
mov dword [edi + 0x110], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x54c250], 0
je 0x482828
mov eax, dword [0x55ba68]
test eax, eax
je 0x4827ee
push eax
call dword [0x54c2a4]
add esp, 4
push esi
call dword [0x54c280]
sub dword [0x55b8b8], eax
dec dword [0x55b8dc]
add esp, 4
push esi
call dword [0x54c278]
mov eax, dword [0x55ba68]
add esp, 4
test eax, eax
je 0x482832
push eax
call dword [0x54c2ac]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x54c278]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret