Function at 0x50acfb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
and dword [ebp - 0x1c], 0
and dword [ebp - 0x28], 0
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
mov esi, dword [ebx + 8]
mov edx, dword [ebx]
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x50ad2d
xor eax, eax
jmp 0x50b798
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x50b76d
movzx eax, byte [edi]
mov dword [ebp - 0x14], eax
cmp eax, 0x65
ja 0x50b201
je 0x50b76d
cmp eax, 0x29
ja 0x50b03b
cmp eax, 0x24
jae 0x50b001
cmp eax, 0x1d
ja 0x50ae7e
je case.0x50b214.148
cmp eax, 0x13
je 0x50b066
cmp eax, 0x14
je case.0x50b214.119
cmp eax, 0x1a
jbe case.0x50b214.120
cmp eax, 0x1c
jbe 0x50b089
mov ecx, dword [edi + 0x14]
and dword [ebp - 0x20], 0
push esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
call fcn.00522d24
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x50ae04
push 0xc
pop ecx
mov esi, eax
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
call fcn.0050b800
mov cl, byte [ebp - 0x5c]
add esp, 0xc
and dword [ebp - 0x58], 0xffffefff
and dword [ebp - 0x1c], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x36], cl
mov byte [ebp - 0x5c], 0x9d
mov byte [ebp - 0x8c], 0x25
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0x50b722
dec edi
shr edi, 1
inc edi
test eax, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
je 0x50b6cf
inc dword [ebx + 0x6c]
mov eax, dword [eax]
push esi
mov dword [ebp - 0x7c], eax
call fcn.00522d24
push 0x10
mov esi, eax
push esi
push dword [ebp - 0x20]
push ebx
call fcn.0050bc86
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [eax + 0x18]
push ebx
call fcn.0050a6c1
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.005224cd
push ebx
call fcn.0050a4f9
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00524389
mov eax, dword [ebp + 8]
add esp, 0x34
add eax, 0x30
mov dword [ebp + 8], eax
sub edi, 1
jne 0x50ae22
jmp 0x50b722
cmp eax, 0x20
je 0x50af4b
cmp eax, 0x21
je 0x50aee1
add eax, 0xffffffde
cmp eax, 1
ja case.0x50b214.120
push 0
push ecx
push 1
push 0x4a
push esi
call fcn.0051c4d7
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
push eax
push dword [ebp - 0x14]
push esi
call fcn.0051c4a2
mov edi, dword [ebp - 8]
mov esi, eax
push 0
push dword [ebp + 0x10]
push 0
push 0x4a
push edi
call fcn.0051c4d7
add esp, 0x40
push esi
push edi
call fcn.005229cf
pop ecx
pop ecx
jmp 0x50b77d
push esi
call fcn.00522d24
push dword [ebp - 8]
mov esi, eax
call fcn.00522d24
push 0
push dword [ebp + 0x10]
mov edi, eax
push 0
push 0x4d
push dword [ebp - 8]
call fcn.0051c4d7
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0050aa29
push 0
push dword [ebp + 0x10]
push 1
push 0x4a
push dword [ebp - 8]
call fcn.0051c4d7
add esp, 0x40
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00524389
push 0
push 0
push dword [ebp + 0x10]
push 0x59
push esi
call fcn.0051c4d7
push edi
push esi
call fcn.00524389
add esp, 0x24
jmp 0x50b77d
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
mov esi, dword [edi]
call fcn.0050b800
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp + 8]
call fcn.0050b800
push dword [ebp + 8]
mov edx, eax
call fcn.0050ea30
push dword [ebp + 8]
mov dword [ebp - 0x20], eax
call fcn.0050ea30
push 0x20
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push edx
push ebx
push 0x29
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004f1799
mov esi, dword [edi + 0x18]
add esp, 0x40
mov edi, dword [ebp + 8]
push dword [ebp - 0x28]
push edi
call fcn.00516a42
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call fcn.0050b800
mov edi, dword [ebp - 0x10]
push 0x20
push edi
push eax
push ebx
push 0x27
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004f1799
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
push edi
push ebx
push 0x1c
push dword [ebp - 8]
call fcn.0051c4d7
add esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00516a42
push edi
push ebx
call fcn.00516a42
add esp, 0x10
jmp 0x50b77d
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x10]
push ebx
call fcn.0050b800
push 0x20
push dword [ebp + 0x10]
push eax
push esi
push dword [ebp - 0x14]
push dword [edi + 0x10]
push dword [edi + 0xc]
push ebx
call fcn.004f1799
add esp, 0x38
jmp 0x50b77d
cmp eax, 0x42
ja 0x50b114
je 0x50b0bd
cmp eax, 0x2b
jb case.0x50b214.120
cmp eax, 0x34
jbe 0x50b089
cmp eax, 0x35
je case.0x50b214.156
cmp eax, 0x36
jne case.0x50b214.120
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
mov edi, dword [ebp + 0x10]
push edi
push eax
push dword [ebp - 0x14]
push esi
call fcn.0051c4bc
add esp, 0x1c
jmp 0x50b780
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x10]
push ebx
call fcn.0050b800
push dword [ebp + 0x10]
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.0051c4d7
add esp, 0x2c
jmp 0x50b77d
push ecx
push dword [edi + 0xc]
push ebx
call fcn.0050acfb
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0x10]
je 0x50b0e7
push dword [ebp + 0x10]
push eax
push 0x53
push esi
call fcn.0051c4bc
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 4], eax
push 0
push dword [edi + 8]
call fcn.00502aca
movsx eax, al
push eax
push dword [ebp + 0x10]
push 0x5b
push esi
call fcn.0051c4bc
mov edi, dword [ebp - 4]
push 1
push edi
push ebx
call fcn.0050a52f
add esp, 0x24
jmp 0x50b780
cmp eax, 0x53
je 0x50b18f
cmp eax, 0x58
je 0x50b139
cmp eax, 0x61
jne case.0x50b214.120
push dword [edi + 8]
push ecx
push esi
call fcn.00522d07
add esp, 0xc
jmp 0x50b77d
mov eax, dword [edi + 0x2c]
push ecx
mov dword [ebp + 8], eax
movsx ecx, word [eax + 0x22]
movsx eax, word [edi + 0x20]
inc ecx
imul ecx, dword [edi + 0x1c]
inc eax
add eax, ecx
push eax
push 0x8d
push esi
call fcn.0051c4bc
movzx eax, word [edi + 0x20]
add esp, 0x10
test ax, ax
js 0x50b77d
movsx ecx, ax
mov eax, dword [ebp + 8]
add ecx, ecx
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xd], 0x45
jne 0x50b77d
push dword [ebp + 0x10]
push 0x5a
push esi
call fcn.0051c4a2
jmp 0x50b131
xor ecx, ecx
cmp dword [ebx + 0x1a4], ecx
jne 0x50b1ad
push str.RAISE___may_only_be_used_within_a_trigger_program
push ebx
call fcn.00509ec1
pop ecx
pop ecx
xor eax, eax
jmp 0x50b797
mov al, byte [edi + 1]
cmp al, 2
jne 0x50b1ca
mov eax, dword [ebx + 0x1a0]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
xor ecx, ecx
mov al, byte [edi + 1]
push ecx
cmp al, 4
jne 0x50b1e6
push dword [edi + 8]
push ecx
push 4
push ecx
push 0x49
push esi
call fcn.0051c533
add esp, 0x1c
jmp 0x50b77d
push ecx
push dword [edi + 8]
movsx eax, al
push eax
push 0x713
push ebx
call fcn.0050f1d3
add esp, 0x18
jmp 0x50b77d
add eax, 0xffffff89
cmp eax, 0x28
ja case.0x50b214.120
movzx eax, byte [eax + 0x50b7d7]
jmp dword [eax*4 + 0x50b79f]
movsx eax, word [edi + 0x22]
mov edx, dword [edi + 0x28]
imul eax, eax, 0x18
add eax, dword [edx + 0x1c]
cmp byte [edx], 0
jne 0x50b237
mov eax, dword [eax + 0x10]
mov edi, eax
jmp 0x50b780
cmp byte [edx + 1], 0
je case.0x50b214.152
push ecx
push dword [eax + 0xc]
push dword [edx + 8]
push 0x5e
jmp 0x50b774
mov edx, dword [edi + 0x1c]
test edx, edx
jns 0x50b264
mov edx, dword [ebx + 0x64]
test edx, edx
jle 0x50b261
movsx eax, word [edi + 0x20]
add eax, edx
jmp 0x50b230
mov edx, dword [ebx + 0x68]
movzx eax, byte [edi + 0x26]
push eax
movsx eax, word [edi + 0x20]
push ecx
push edx
push eax
push dword [edi + 0x2c]
push ebx
call fcn.0050a8cb
add esp, 0x18
mov dword [ebp - 4], eax
jmp 0x50b77d
push ecx
push 0
push edi
push ebx
call fcn.004f1a84
jmp 0x50aff9
push ecx
push 0
push dword [edi + 8]
push esi
call fcn.004f1b6b
jmp 0x50aff9
mov esi, dword [edi + 8]
add esi, 2
push esi
call fcn.00519db1
lea edi, [eax - 1]
push edi
push esi
mov esi, dword [ebp - 8]
push dword [esi]
call fcn.0050f337
push 0xffffffffffffffff
push eax
push 0
push dword [ebp + 0x10]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0x4f
push esi
call fcn.0051c533
jmp 0x50b0b5
movsx eax, word [edi + 0x20]
push ecx
push eax
push 0x50
push esi
call fcn.0051c4bc
mov eax, dword [edi + 8]
add esp, 0x10
cmp byte [eax + 1], 0
je 0x50b77d
movsx ecx, word [edi + 0x20]
mov eax, dword [ebx + 0x1dc]
push 0xfffffffffffffffe
push dword [eax + ecx*4 - 4]
push 0xffffffffffffffff
push esi
call fcn.0051c744
jmp 0x50aff9
mov eax, dword [edi + 0x1c]
jmp 0x50b230
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x10]
push ebx
call fcn.0050b800
push 0xa0
push dword [ebp + 0x10]
push eax
xor eax, eax
cmp dword [ebp - 0x14], 0x1d
push esi
sete al
add eax, 0x24
push eax
jmp 0x50b027
mov eax, dword [edi + 0xc]
mov dl, byte [eax]
cmp dl, 0x84
jne 0x50b36d
push ecx
push 1
push eax
push ebx
call fcn.004f1a84
jmp 0x50b37e
cmp dl, 0x85
jne 0x50b383
push ecx
push 1
push dword [eax + 8]
push esi
call fcn.004f1b6b
add esp, 0x10
jmp 0x50b3c1
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x5c], 0x84
push eax
push ebx
mov dword [ebp - 0x58], 0x4400
call fcn.0050b800
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0xc]
push ebx
call fcn.0050b800
push dword [ebp + 0x10]
push esi
push eax
push 0x30
push dword [ebp - 8]
call fcn.0051c4d7
add esp, 0x2c
mov edi, dword [ebp + 0x10]
jmp 0x50b780
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x50b3e3
push dword [edi + 8]
push str.misuse_of_aggregate:__s__
push ebx
call fcn.00509ec1
jmp 0x50b131
movsx ecx, word [edi + 0x22]
mov eax, dword [eax + 0x28]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 8]
jmp 0x50b230
and dword [ebp - 0x2c], 0
mov al, byte [edx + 0x42]
and dword [ebp - 0x20], 0
test dword [edi + 4], 0x4000
mov byte [ebp - 0x10], al
je 0x50b4d4
and dword [ebp - 0x24], 0
xor eax, eax
mov ecx, dword [edi + 8]
push 0
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
push eax
push ecx
push edx
mov dword [ebp - 0xc], ecx
call fcn.0050c65e
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x50b69d
cmp dword [ecx + 0x10], 0
jne 0x50b69d
movzx eax, word [ecx + 2]
test eax, 0x200
je 0x50b4e9
push esi
call fcn.00522d24
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x18], eax
mov ecx, dword [ecx + 4]
push dword [ecx]
push ebx
call fcn.0050a6c1
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp ecx, 1
jle 0x50b4c4
dec ecx
mov dword [ebp + 0x10], 0x18
mov dword [ebp + 8], ecx
push dword [ebp - 0x18]
push edi
push 0x23
push esi
call fcn.0051c4bc
push 1
push edi
push ebx
call fcn.0050a52f
mov eax, dword [ebp - 0x24]
inc dword [ebx + 0x6c]
mov ecx, dword [ebp + 0x10]
push edi
mov eax, dword [eax + 4]
push dword [ecx + eax]
push ebx
call fcn.0050a6c1
push ebx
call fcn.0050a4f9
add dword [ebp + 0x10], 0x18
add esp, 0x2c
sub dword [ebp + 8], 1
jne 0x50b486
push dword [ebp - 0x18]
push esi
call fcn.00524389
pop ecx
pop ecx
jmp 0x50b780
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x50b414
mov eax, dword [ecx]
jmp 0x50b416
test eax, 0x400
je 0x50b509
mov eax, dword [ebp - 0x24]
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
push dword [eax]
push ebx
call fcn.0050acfb
add esp, 0xc
jmp 0x50b27c
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
jle 0x50b581
mov esi, dword [ebp - 0x24]
xor edx, edx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp eax, 0x20
jge 0x50b547
mov eax, dword [esi + 4]
push dword [eax + edx]
call fcn.0050c1bc
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp - 0xc]
pop ecx
je 0x50b544
mov ecx, dword [ebp - 0x2c]
bts ecx, eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
test byte [edi + 2], 0x20
je 0x50b56d
cmp dword [ebp - 0x20], 0
jne 0x50b56d
mov eax, dword [esi + 4]
push dword [eax + edx]
push ebx
call fcn.0050b8c2
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
inc eax
add edx, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
cmp eax, ecx
jl 0x50b520
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x50b5f7
cmp dword [ebp - 0x2c], 0
je 0x50b5a1
mov eax, dword [ebx + 0x4c]
lea esi, [eax + 1]
add eax, ecx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov dword [ebx + 0x4c], eax
jmp 0x50b5b0
push ecx
push ebx
call fcn.0050e9fd
mov edx, dword [ebp - 0x24]
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 2], 0xc0
je 0x50b5d8
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov cl, byte [ecx]
cmp cl, 0x98
je 0x50b5cd
cmp cl, 0x9a
jne 0x50b5d8
mov al, byte [eax + 2]
mov ecx, dword [ebp - 0x10]
and al, 0xc0
mov byte [ecx + 0x26], al
inc dword [ebx + 0x6c]
push 3
push 0
push dword [ebp - 0xc]
push edx
push ebx
call fcn.0050a7ae
push ebx
call fcn.0050a4f9
mov edx, dword [ebp - 0x24]
add esp, 0x18
jmp 0x50b5fb
and dword [ebp - 0xc], 0
cmp dword [ebp + 8], 2
jl 0x50b624
test byte [edi + 4], 0x80
je 0x50b624
mov eax, dword [edx + 4]
mov edi, dword [ebp + 8]
push dword [eax + 0x18]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.005256be
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x50b635
mov edi, dword [ebp + 8]
test edi, edi
jle 0x50b632
mov eax, dword [edx + 4]
push dword [eax]
jmp 0x50b610
mov eax, dword [ebp - 0x14]
test byte [eax + 2], 0x20
je 0x50b65e
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x50b648
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push 0xfffffffffffffffc
push eax
xor eax, eax
push eax
push eax
push eax
push 0x56
push esi
call fcn.0051c533
mov eax, dword [ebp - 0x14]
add esp, 0x1c
push 0xfffffffffffffffb
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push 0x57
push esi
call fcn.0051c533
push edi
push esi
call fcn.0051c7bd
add esp, 0x24
test edi, edi
je 0x50b77d
cmp dword [ebp - 0x2c], 0
jne 0x50b77d
push edi
push dword [ebp - 0xc]
push ebx
call fcn.00516a18
jmp 0x50b131
push dword [ebp - 0xc]
push str.unknown_function:__s__
jmp 0x50b3d8
push 0
push 0
push edi
push ebx
call fcn.00506e04
add esp, 0x10
jmp 0x50b230
push ecx
push dword [edi + 0xc]
push ebx
call fcn.0050acfb
add esp, 0xc
jmp 0x50b230
inc dword [ebx + 0x6c]
push dword [ebp - 8]
mov esi, dword [eax]
call fcn.00522d24
push 0x10
mov edi, eax
push edi
push esi
push ebx
call fcn.0050bc86
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [eax + 0x18]
push ebx
call fcn.0050a6c1
push dword [ebp - 0x18]
mov esi, dword [ebp - 8]
push esi
call fcn.005224cd
push ebx
call fcn.0050a4f9
push edi
push esi
call fcn.00524389
mov eax, dword [ebp + 8]
add esp, 0x34
add eax, 0x30
sub dword [ebp - 0x10], 1
mov dword [ebp + 8], eax
jne 0x50b6cf
mov eax, dword [ebp - 0xc]
test al, 1
je 0x50b74d
inc dword [ebx + 0x6c]
push dword [ebp + 0x10]
imul ecx, eax, 0x18
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
push dword [ecx + eax - 0x18]
push ebx
call fcn.0050a6c1
push ebx
call fcn.0050a4f9
add esp, 0x10
jmp 0x50b75f
push 0
push dword [ebp + 0x10]
push 0
push 0x4d
push esi
call fcn.0051c4d7
add esp, 0x14
push dword [ebp - 0x18]
push esi
call fcn.00524389
jmp 0x50aeda
push 0
push ecx
push 0
push 0x4d
push esi
call fcn.0051c4d7
add esp, 0x14
mov edi, dword [ebp - 4]
push dword [ebp - 0x1c]
push ebx
call fcn.00516a42
push dword [ebp - 0x28]
push ebx
call fcn.00516a42
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret