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

Disassembly:
push 0xffffffffffffffff
push 0x66a41c
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8a0c44]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
mov eax, dword [esp + 0x348]
mov ebp, dword [esp + 0x340]
mov edi, ecx
mov ecx, dword [esp + 0x344]
push eax
push ecx
mov dword [esp + 0x24], ecx
push ebp
mov ecx, edi
mov dword [esp + 0x4c], edi
call fcn.0047b1e0
lea esi, [edi + 0x2c]
mov ecx, esi
mov dword [esp + 0x338], 0
mov dword [edi], vtable.DuckMobj.0
call fcn.00440f70
lea ebx, [edi + 0x64]
mov ecx, ebx
mov byte [esp + 0x338], 1
call fcn.0043c210
mov dword [ebx], vtable.TList_class_DuckMslt_.0
lea ebx, [edi + 0x80]
mov ecx, ebx
mov byte [esp + 0x338], 2
call fcn.00432460
lea ecx, [edi + 0xa0]
mov byte [esp + 0x338], 3
call fcn.00440f70
lea ecx, [edi + 0xec]
mov byte [esp + 0x338], 4
call fcn.0043c210
mov dword [edi + 0xec], vtable.TList_class_DNameValue_.0
mov ecx, edi
mov byte [esp + 0x338], 5
call fcn.00476990
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0xb4]
push eax
push 0x80
lea ecx, [esp + 0x44]
push ecx
push edx
push ebp
mov byte [esp + 0x147], 0
call fcn.0050ded0
add esp, 0x1c
push 1
push 2
lea eax, [esp + 0xb4]
push eax
mov ecx, ebx
call fcn.00432d80
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00441520
mov ecx, dword [0x8a3ae4]
mov edx, dword [edi + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov eax, dword [ecx + 0xc]
cmp eax, 1
ja 0x499104
push 0x75
push edx
push ebp
call fcn.0051b1c0
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
push 0x17
push str.UsageCode
push ecx
push ebp
call fcn.00471860
add esp, 0x20
test eax, eax
jne 0x499162
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x499162
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [edi + 0x18]
push eax
push ebp
mov dword [esp + 0x28], esi
call fcn.0051b3c0
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [edi + 0x94], ecx
jmp 0x499162
push 0x48
push edx
push ebp
call fcn.0051b1c0
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
push 9
push str.AppCode
push ecx
push ebp
call fcn.00471860
add esp, 0x20
cmp eax, esi
jne 0x499155
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x499162
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [edi + 0x18]
push eax
push ebp
call fcn.00471800
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov dword [edi + 0x94], ecx
jmp 0x499162
cmp eax, 0x96
jne 0x499162
mov dword [edi + 0x94], esi
mov edx, dword [0x8a3ae4]
cmp dword [edx + 0xc], 2
lea edx, [esp + 0x28]
sete al
movzx ecx, al
mov eax, dword [edi + 0x18]
push ecx
push edx
push str._USER
push eax
push ebp
call fcn.00472810
add esp, 0x14
test eax, eax
jne 0x49932f
mov ecx, dword [esp + 0x28]
push 0x10
push ecx
push ebp
call fcn.0051b1c0
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x49932f
mov esi, 1
cmp eax, esi
jb 0x49932f
jmp 0x4991c0
mov eax, dword [esp + 0x28]
push esi
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
xor ebx, ebx
push ebp
mov dword [esp + 0x2c], ebx
call fcn.0051af50
add esp, 0x14
cmp eax, ebx
jne 0x499324
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0xa
push edx
push ebp
mov dword [esp + 0x24], ebx
call fcn.0051a520
add esp, 0x10
cmp dword [esp + 0x14], 2
jne 0x499324
push 0x40
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.0063f050
push 0x200
lea ecx, [esp + 0x13c]
push ebx
push ecx
call fcn.0063f050
mov ecx, dword [esp + 0x30]
push ebx
push 0x200
lea edx, [esp + 0x14c]
push edx
push 0x200
lea eax, [esp + 0x94]
push eax
push ecx
push ebp
call fcn.00471fb0
mov al, byte [esp + 0x160]
add esp, 0x34
xor dl, dl
lea ecx, [esp + 0x12c]
test al, al
je 0x499279
cmp al, 0x20
je 0x49926d
cmp al, 0x7f
jne 0x499277
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x499265
jmp 0x499279
mov dl, 1
cmp byte [esp + 0x6c], 0
je 0x499324
test dl, dl
je 0x499324
push 2
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x60]
call fcn.00433600
push 2
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x340], 6
call fcn.00433600
push 0xc
mov byte [esp + 0x33c], 7
call fcn.0063f278
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x338], 8
cmp eax, ebx
je 0x4992ec
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ecx, eax
call fcn.0065fc40
jmp 0x4992ee
xor eax, eax
push eax
lea ecx, [edi + 0xec]
mov byte [esp + 0x33c], 7
call fcn.0043c250
lea ecx, [esp + 0x44]
mov byte [esp + 0x338], 6
call fcn.00431720
lea ecx, [esp + 0x58]
mov byte [esp + 0x338], 5
call fcn.00431720
inc esi
cmp esi, dword [esp + 0x2c]
jbe 0x4991c0
mov ebx, 1
cmp dword [esp + 0x20], ebx
jl 0x499489
mov edi, edi
mov eax, dword [0x8a3ae4]
cmp dword [eax + 0xc], 1
push ebx
ja 0x49935a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x75
push edx
jmp 0x499366
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x48
push ecx
push ebp
call fcn.0051af50
add esp, 0x14
test eax, eax
je 0x499391
mov edx, dword [0x8a3ae4]
push eax
mov eax, dword [edx + 8]
push ebx
push str._mobj_ignoring_slot__d_cuz__d_n
push eax
call fcn.00437100
add esp, 0x10
jmp 0x49947e
push 0x60
call fcn.0063f278
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x338], 9
test eax, eax
je 0x4993c1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebp
mov ecx, eax
call fcn.004acca0
mov esi, eax
jmp 0x4993c3
xor esi, esi
mov byte [esp + 0x338], 5
test esi, esi
je 0x49947e
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push eax
push ecx
call fcn.0043d490
add eax, 0xffffffb9
add esp, 8
cmp eax, 0x19
ja case.0x4993f2.73
movzx edx, byte [eax + 0x4995ec]
jmp dword [edx*4 + 0x4995e0]
call fcn.00438770
test al, al
je 0x499439
mov edx, dword [esi]
mov ecx, 1
push ecx
mov eax, 0x18
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
jmp case.0x4993f2.73
call fcn.00438770
test al, al
je 0x499439
mov edx, dword [esi]
mov ecx, 0x3e8
push ecx
mov eax, 0x5da8
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
jmp case.0x4993f2.73
mov ecx, dword [esi + 0x30]
mov edx, dword [edi + 0x84]
mov eax, dword [0x8a3ae4]
push ecx
mov ecx, dword [eax + 8]
push edx
push str.__s__dfps_conform_disabled_n
push ecx
call fcn.00437100
add esp, 0x10
cmp dword [edi + 0x98], 0
jne 0x499475
mov edx, dword [esi + 0x30]
mov dword [edi + 0x98], edx
mov eax, dword [esi + 0x34]
mov dword [edi + 0x9c], eax
push esi
lea ecx, [edi + 0x64]
call fcn.0043c250
inc ebx
cmp ebx, dword [esp + 0x20]
jle 0x499340
lea esi, [edi + 0xc]
mov ecx, str.MMOB
mov eax, esi
mov ebp, 4
sub ecx, esi
mov dl, byte [eax + ecx]
mov bl, byte [eax]
dec ebp
inc eax
cmp dl, bl
jne 0x4994ab
test ebp, ebp
jne 0x49949a
jmp 0x4994f0
mov ecx, str.SMOB
mov eax, esi
mov ebp, 4
sub ecx, esi
mov dl, byte [eax + ecx]
mov bl, byte [eax]
dec ebp
inc eax
cmp dl, bl
jne 0x4994ca
test ebp, ebp
jne 0x4994b9
jmp 0x4994f0
mov ecx, str.CMOB
mov eax, esi
mov ebp, 4
sub ecx, esi
mov dl, byte [eax + ecx]
mov bl, byte [eax]
dec ebp
inc eax
cmp dl, bl
jne 0x499560
test ebp, ebp
jne 0x4994d8
cmp dword [edi + 0x94], 2
jne 0x499560
mov eax, dword [edi + 0x68]
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0
test eax, eax
je 0x499506
mov eax, dword [eax + 4]
jmp 0x499508
xor eax, eax
test eax, eax
je 0x499560
lea esp, [esp]
mov edx, dword [eax]
lea ecx, [edi + 0xa0]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
test al, al
jne 0x499560
mov eax, dword [edi + 0x74]
test eax, eax
je 0x49955a
cmp eax, 0xffffffff
jne 0x499546
mov eax, dword [edi + 0x68]
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0
test eax, eax
je 0x49955a
mov eax, dword [eax + 4]
jmp 0x49955c
mov eax, dword [eax + 8]
test eax, eax
je 0x49955a
inc dword [edi + 0x78]
mov ecx, eax
mov dword [edi + 0x74], eax
mov eax, dword [ecx + 4]
jmp 0x49955c
xor eax, eax
test eax, eax
jne 0x499510
mov edx, dword [0x8a3ae4]
cmp dword [edx + 0x18], 0
je 0x4995b2
lea ecx, [edi + 0x80]
call fcn.004317e0
test eax, eax
je 0x499593
mov eax, dword [0x8a3ae4]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [edi + 0x84]
mov edx, dword [edx + 0x20]
push 0
push eax
call edx
mov eax, dword [0x8a3ae4]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
test al, al
je 0x4995b2
push 0x3e9
mov ecx, edi
call fcn.004510c0
mov eax, edi
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0063ecb3
add esp, 0x328
ret 0xc