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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp]
xor edx, edx
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x28], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
cmp ebx, edx
jne 0x51ab9f
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
push esi
mov esi, dword [esp + 0xa0]
mov eax, 0x65
cmp esi, edx
je 0x51abb3
movzx eax, byte [esi]
mov dword [esp + 0x20], eax
add eax, 0xffffffed
cmp eax, 0x8a
ja case.0x51abcc.21
movzx eax, byte [eax + 0x51b954]
jmp dword [eax*4 + 0x51b8f0]
movsx ecx, word [esi + 0x22]
mov eax, dword [esi + 0x28]
cmp byte [eax], 0
mov edx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8]
jne 0x51abfa
mov eax, dword [ecx + 0x10]
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
cmp byte [eax + 1], 0
je 0x51ac23
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax + 8]
push edi
push ecx
push edx
push 0x30
push ebx
call fcn.004cf760
mov eax, dword [esp + 0x40]
add esp, 0x14
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
xor edx, edx
mov eax, dword [esi + 0x1c]
cmp eax, edx
jge 0x51ac4b
mov ecx, dword [ebp + 0x60]
cmp ecx, edx
jle 0x51ac48
movsx eax, word [esi + 0x20]
pop esi
pop edi
add eax, ecx
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
mov eax, dword [ebp + 0x64]
movzx ecx, byte [esi + 0x26]
movsx edx, word [esi + 0x20]
push ecx
push edi
push eax
mov eax, dword [esi + 0x2c]
push edx
push eax
mov eax, ebp
call fcn.004f11e0
add esp, 0x14
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
push edi
push 0
push ebp
mov eax, esi
call fcn.004e2f10
mov eax, dword [esp + 0x38]
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 8]
mov ecx, edi
push ecx
push 0
mov edi, ebx
call fcn.004d7f40
mov eax, dword [esp + 0x34]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov edx, dword [esi + 8]
mov eax, edi
push edx
mov edi, ebx
call fcn.004dab10
mov eax, dword [esp + 0x30]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
push 0
push edi
push 0
push 0x1a
push ebx
call fcn.004cf760
mov eax, dword [esp + 0x40]
add esp, 0x14
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov esi, dword [esi + 8]
add esi, 2
mov eax, esi
call fcn.004bf8c0
mov ecx, dword [ebx]
mov ebp, eax
dec ebp
push ebp
mov edi, esi
call fcn.004cc390
mov ecx, dword [esp + 0xa8]
push 0xffffffffffffffff
push eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
push eax
push 0x1c
push ebx
xor eax, eax
call fcn.004d6430
mov eax, dword [esp + 0x44]
add esp, 0x18
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
movsx eax, word [esi + 0x20]
push 0
push edi
push eax
push 0x1d
push ebx
call fcn.004cf760
mov ecx, dword [esi + 8]
add esp, 0x14
cmp byte [ecx + 1], 0
je 0x51aefd
movsx edx, word [esi + 0x20]
mov eax, dword [ebp + 0x1d8]
mov edi, dword [eax + edx*4 - 4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
xor ebp, ebp
cmp eax, ebp
je 0x51adc4
cmp byte [ecx + 0x41], 0
jne 0x51adc4
mov ebx, dword [ebx + 0x20]
dec ebx
lea edx, [ebx + ebx*4]
lea esi, [eax + edx*4]
movsx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
add esp, 4
mov dword [esi + 0x10], ebp
cmp edi, ebp
jne 0x51adae
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], ebp
mov byte [esi + 1], 0
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], edi
mov byte [esi + 1], 0xfe
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
push ecx
mov ecx, edi
mov eax, 0xfffffffe
call fcn.004cf9f0
mov eax, dword [esp + 0x30]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 0x1c]
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
mov ecx, dword [esi + 0xc]
push edi
push ecx
push ebp
call fcn.0051ab60
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, edi
je 0x51ae1e
push 0
push edi
push eax
push 0x20
push ebx
call fcn.004cf760
add esp, 0x14
mov dword [esp + 0x2c], edi
mov edx, esi
mov edx, dword [edx + 8]
xor edi, edi
call fcn.004d2750
movsx eax, al
push edi
push eax
mov eax, dword [esp + 0xac]
push eax
push 0x29
push ebx
call fcn.004cf760
mov ecx, dword [esp + 0x40]
push ecx
lea eax, [edi + 1]
mov esi, ebp
call fcn.004c6f00
mov eax, dword [esp + 0x44]
add esp, 0x18
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, ebp
call fcn.004db8c0
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
push edx
mov eax, ebp
call fcn.004db8c0
push 0x20
push edi
push eax
mov eax, dword [esp + 0x3c]
push ebx
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push ebp
call fcn.004f1020
add esp, 0x28
mov esi, dword [esp + 0x10]
test esi, esi
je 0x51aecc
mov dl, byte [ebp + 0x13]
cmp dl, 8
jae 0x51aecc
xor eax, eax
lea ecx, [ebp + 0x78]
cmp dword [ecx + 0xc], esi
je 0x51b8d3
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x51aeb0
movzx ecx, dl
mov dword [ebp + ecx*4 + 0x18], esi
inc byte [ebp + 0x13]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x51aefd
mov dl, byte [ebp + 0x13]
cmp dl, 8
jae 0x51aefd
xor eax, eax
lea ecx, [ebp + 0x78]
cmp dword [ecx + 0xc], esi
je 0x51b8dc
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x51aee1
movzx edx, dl
mov dword [ebp + edx*4 + 0x18], esi
inc byte [ebp + 0x13]
mov eax, dword [esp + 0x2c]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov eax, ebp
call fcn.004db8c0
mov ecx, dword [esi + 0x10]
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
xor edx, edx
cmp dword [esp + 0x30], 0x49
push 0xa0
sete dl
push edi
push eax
push ebx
add edx, 0x4e
push edx
jmp 0x51ae8c
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, ebp
call fcn.004db8c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push edi
push ecx
push eax
push edx
push ebx
call fcn.004cf760
add esp, 0x24
jmp 0x51ae9b
mov eax, dword [esi + 0xc]
mov cl, byte [eax]
cmp cl, 0x84
jne 0x51afad
push edi
push 1
push ebp
call fcn.004e2f10
mov edx, dword [esp + 0xb0]
add esp, 0xc
mov dword [esp + 0x2c], edx
jmp 0x51ae9b
cmp cl, 0x85
jne 0x51afd4
mov eax, dword [eax + 8]
mov ecx, edi
push ecx
push 1
mov edi, ebx
call fcn.004d7f40
mov edx, dword [esp + 0xac]
add esp, 8
mov dword [esp + 0x2c], edx
jmp 0x51ae9b
mov dword [esp + 0x40], edx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, ebp
mov byte [esp + 0x40], 0x84
mov dword [esp + 0x44], 0x4400
call fcn.004db8c0
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], eax
push edx
mov eax, ebp
call fcn.004db8c0
mov ecx, dword [esp + 0x2c]
push edi
push ecx
push eax
push 0x5a
push ebx
call fcn.004cf760
mov edx, dword [esp + 0xc8]
add esp, 0x24
mov dword [esp + 0x2c], edx
jmp 0x51ae9b
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
mov edx, dword [esp + 0x28]
push edx
mov ecx, eax
push ebx
mov eax, edi
mov dword [esp + 0x3c], edi
call fcn.004cf7d0
add esp, 0x10
jmp 0x51ae9b
push 0
push edi
push 1
push 0x17
push ebx
call fcn.004cf760
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
mov edx, dword [esp + 0x3c]
push 0
push 0
push eax
push edx
push ebx
call fcn.004cf760
push 0
push edi
push 0
push 0x17
push ebx
mov esi, eax
call fcn.004cf760
add esp, 0x44
mov ecx, esi
mov eax, ebx
call fcn.004cf9b0
jmp 0x51ae9b
mov eax, dword [esi + 0x28]
cmp eax, edx
jne 0x51b0cd
mov eax, dword [esi + 8]
push eax
push str.misuse_of_aggregate:__s__
mov edi, ebp
call fcn.004e0360
mov eax, dword [esp + 0x34]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
movsx ecx, word [esi + 0x22]
mov edx, dword [eax + 0x28]
pop esi
pop edi
shl ecx, 4
mov eax, dword [ecx + edx + 8]
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
test dword [esi + 4], 0x4000
mov cl, byte [ecx + 0x3e]
mov dword [esp + 0x28], edx
mov byte [esp + 0x24], cl
mov dword [esp + 0x34], edx
je 0x51b108
mov dword [esp + 0x20], edx
jmp 0x51b115
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
cmp eax, edx
je 0x51b115
mov edx, dword [eax]
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004bf8c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call fcn.004d8630
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x51b43b
cmp dword [eax + 0xc], 0
je 0x51b43b
movzx eax, word [eax + 2]
test eax, 0x200
je 0x51b20e
mov eax, ebx
call fcn.004cf7f0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push edi
push ecx
push ebp
call fcn.0051b9e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jle 0x51b1f0
dec eax
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x30]
push 0
push edx
push edi
push 0x4d
push ebx
call fcn.004cf760
push edi
mov eax, 1
mov esi, ebp
call fcn.004c6f00
inc dword [ebp + 0x68]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x30]
mov edx, dword [esi + ecx]
push edi
push edx
push ebp
call fcn.0051b9e0
add esp, 0x24
mov eax, ebp
call fcn.004c6f60
add esi, 0x18
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], esi
jne 0x51b1a2
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004c4a30
mov eax, dword [esp + 0x30]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
test eax, 0x400
je 0x51b238
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
push edi
push eax
push ebp
call fcn.0051ab60
add esp, 0xc
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 1
test eax, eax
jle 0x51b2da
mov dword [esp + 0x1c], 0
lea esp, [esp]
cmp dword [esp + 0x24], 0x20
jge 0x51b28e
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + eax]
push ecx
call fcn.004d1b10
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
je 0x51b28e
mov edx, dword [esp + 0x18]
or dword [esp + 0x28], edx
mov ecx, dword [esp + 0x10]
test byte [ecx + 2], 0x20
je 0x51b2be
cmp dword [esp + 0x34], 0
jne 0x51b2be
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [eax + ecx]
push ebp
call fcn.004f0ea0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add dword [esp + 0x1c], 0x18
inc ecx
rol edx, 1
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
jl 0x51b260
cmp dword [esp + 0x20], 0
je 0x51b35c
cmp dword [esp + 0x28], 0
je 0x51b2f9
mov ecx, dword [ebp + 0x48]
lea edx, [ecx + 1]
add ecx, eax
mov dword [esp + 0x1c], edx
mov dword [ebp + 0x48], ecx
jmp 0x51b30d
mov esi, eax
mov ecx, ebp
call fcn.004c71a0
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x10]
test byte [edx + 2], 0xc0
je 0x51b335
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov cl, byte [eax]
cmp cl, 0x98
je 0x51b32c
cmp cl, 0x9a
jne 0x51b335
mov dl, byte [edx + 2]
and dl, 0xc0
mov byte [eax + 0x26], dl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc dword [ebp + 0x68]
push 3
push 0
push eax
push ecx
push ebp
call fcn.004db9f0
add esp, 0x14
mov eax, ebp
call fcn.004c6f60
mov eax, dword [esp + 0x14]
jmp 0x51b364
mov dword [esp + 0x1c], 0
cmp eax, 2
jl 0x51b386
test byte [esi + 4], 0x80
je 0x51b386
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x18]
jmp 0x51b39e
test eax, eax
jle 0x51b3aa
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [edx]
push ecx
call fcn.004d9800
mov dword [esp + 0x1c], eax
add esp, 0xc
mov edx, dword [esp + 0x10]
test byte [edx + 2], 0x20
je 0x51b3de
cmp dword [esp + 0x34], 0
jne 0x51b3c6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
push 0xfffffffffffffffc
push edx
push 0
push 0x23
push ebx
xor eax, eax
xor ecx, ecx
call fcn.004d6430
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push 0xfffffffffffffffb
push eax
push ecx
mov ecx, dword [esp + 0x28]
push 0x24
push ebx
mov eax, edi
call fcn.004d6430
mov dl, byte [esp + 0x28]
add esp, 0x14
mov ecx, ebx
call fcn.004cf980
mov edi, dword [esp + 0x14]
test edi, edi
je 0x51aefd
cmp dword [esp + 0x28], 0
jne 0x51aefd
mov edx, dword [esp + 0x1c]
push edx
mov eax, ebp
call fcn.004c71d0
mov eax, dword [esp + 0x30]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.unknown_function:__.s__
mov edi, ebp
call fcn.004e0360
mov eax, dword [esp + 0x38]
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
push 0
push 0
push esi
push ebp
call fcn.00514520
add esp, 0x10
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
mov eax, ebx
call fcn.004cf7f0
mov dword [esp + 0x18], eax
mov eax, ebx
call fcn.004cf7f0
push 0
push edi
push 0
push 0x1a
push ebx
mov dword [esp + 0x38], eax
call fcn.004cf760
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebp
mov eax, esi
call fcn.005163d0
push 0
push edi
push 1
push 0x17
push ebx
call fcn.004cf760
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.004c4a30
push 0
push 0
push edi
push 0x26
push ebx
call fcn.004cf760
mov edx, dword [esp + 0x70]
add esp, 0x4c
push edx
mov ecx, ebx
call fcn.004c4a30
mov eax, dword [esp + 0x30]
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, esi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov esi, dword [eax + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push edi
mov eax, ebp
mov dword [esp + 0x30], ecx
call fcn.004db8c0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
mov edx, eax
mov eax, ebp
call fcn.004c7150
mov dword [esp + 0x28], eax
mov eax, ebp
call fcn.004c7150
mov ecx, dword [esp + 0x2c]
push 0x20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x40]
push edx
push ecx
push 0x53
push ebp
mov ecx, edi
call fcn.004f1020
mov edx, dword [esi + 0x18]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x50], edx
mov edx, ebp
call fcn.004c7170
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
push eax
push ecx
mov eax, ebp
call fcn.004db8c0
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
push 0x20
push esi
push eax
mov eax, dword [esp + 0x64]
push edx
push 0x51
push ebp
mov ecx, edi
call fcn.004f1020
mov eax, dword [esp + 0xec]
add esp, 0x48
push eax
push esi
mov esi, dword [esp + 0x20]
push esi
push 0x48
push ebx
call fcn.004cf760
add esp, 0x14
mov edx, ebp
call fcn.004c7170
mov esi, dword [esp + 0x24]
call fcn.004c7170
jmp 0x51ae9b
mov ecx, dword [esi + 0xc]
push edi
push ecx
push ebp
call fcn.0051ab60
add esp, 0xc
pop esi
pop edi
pop ebp
mov dword [esp + 0x20], eax
pop ebx
add esp, 0x88
ret
mov ebp, dword [esi + 0x2c]
movsx edx, word [ebp + 0x22]
movsx eax, word [esi + 0x20]
inc edx
imul edx, dword [esi + 0x1c]
push 0
push edi
lea ecx, [edx + eax + 1]
push ecx
push 0x87
push ebx
call fcn.004cf760
movzx eax, word [esi + 0x20]
add esp, 0x14
test ax, ax
jl 0x51aefd
cwde
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
cmp byte [eax + edx*8 + 0x15], 0x45
jne 0x51aefd
push 0
push 0
push edi
push 0x28
push ebx
call fcn.004cf760
mov eax, dword [esp + 0x40]
add esp, 0x14
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
cmp dword [ebp + 0x1a0], edx
jne 0x51b676
push str.RAISE___may_only_be_used_within_a_trigger_program
mov edi, ebp
call fcn.004e0360
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
cmp byte [esi + 1], 2
jne 0x51b683
mov ecx, ebp
call fcn.004c7c90
mov al, byte [esi + 1]
push 0
cmp al, 4
jne 0x51b6b1
mov ecx, dword [esi + 8]
push ecx
push 0
xor eax, eax
push 0x16
push ebx
lea ecx, [eax + 4]
call fcn.004d6430
mov eax, dword [esp + 0x40]
add esp, 0x14
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov edx, dword [esi + 8]
push 0
movsx eax, al
push edx
push eax
push 0x713
mov eax, ebp
call fcn.004dc580
mov eax, dword [esp + 0x40]
add esp, 0x14
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call fcn.004cf7f0
mov esi, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x51b759
mov eax, esi
mov ecx, 0xc
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, ebp
call fcn.004db8c0
mov dl, byte [esp + 0x40]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x70]
add esp, 8
and dword [esp + 0x3c], 0xffffefff
mov byte [esp + 0x5e], dl
mov byte [esp + 0x38], 0x9d
mov byte [esp + 0x68], 0x4f
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
test ecx, ecx
jle 0x51b868
mov edx, dword [esp + 0x18]
lea eax, [ecx - 1]
shr eax, 1
inc eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
inc dword [ebp + 0x68]
cmp dword [esp + 0x30], 0
je 0x51b796
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
jmp 0x51b7a0
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x70]
lea edx, [eax + 1]
mov dword [ecx + 0x70], edx
lea edx, [eax - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
test eax, edx
jne 0x51b7ea
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x74]
mov esi, dword [eax]
push 0
push ecx
call fcn.004cbab0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xac]
mov dword [edx + 0x74], eax
mov eax, dword [esp + 0x3c]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x74]
test ecx, ecx
je 0x51b7f8
mov dword [ecx + eax*4], 0xffffffff
or esi, 0xffffffff
sub esi, eax
mov eax, dword [esp + 0x24]
push 0x10
push esi
push eax
push ebp
call fcn.00516c80
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x18]
push edi
push edx
push ebp
call fcn.0051b9e0
mov eax, dword [esp + 0x3c]
push 0
push eax
push 0
push 0xe
push ebx
call fcn.004cf760
add esp, 0x30
mov eax, ebp
call fcn.004c6f60
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x51b84d
lea edx, [esi*4 + 4]
sub eax, edx
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [esp + 0x28], 0x30
dec eax
sub dword [esp + 0x10], 1
mov dword [ecx + 0x5c], eax
jne 0x51b780
mov eax, dword [esp + 0x14]
test al, 1
je 0x51b891
inc dword [ebp + 0x68]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*8 - 0x18]
push edi
push ecx
push ebp
call fcn.0051b9e0
add esp, 0xc
mov eax, ebp
call fcn.004c6f60
jmp 0x51b8a1
push 0
push edi
push 0
push 0x1a
push ebx
call fcn.004cf760
add esp, 0x14
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x51b8bd
mov edx, dword [esp + 0x20]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
pop esi
pop edi
dec eax
pop ebp
mov dword [ecx + 0x5c], eax
mov eax, dword [esp + 0x20]
pop ebx
add esp, 0x88
ret
mov byte [ecx + 6], 1
jmp 0x51aecc
mov eax, dword [esp + 0x2c]
pop esi
pop edi
pop ebp
mov byte [ecx + 6], 1
pop ebx
add esp, 0x88
ret