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

Disassembly:
push 0xffffffffffffffff
push 0x6af5f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esi + 0x158]
mov dword [esp + 0x8c], esi
cmp eax, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], eax
je 0x5493ab
call fcn.005486d0
mov eax, dword [str.msw.remap]
cmp eax, ebp
jne 0x5487a4
mov eax, 0x8c55f4
mov ecx, dword [0x6e14e0]
push ecx
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.00570720
lea edx, [esp + 0x18]
mov dword [esp + 0x1cc], ebp
push edx
call fcn.005997b0
add esp, 4
test al, al
je 0x548811
mov eax, dword [str.msw.remap]
cmp eax, ebp
jne 0x5487dc
mov eax, 0x8c55f4
mov ecx, dword [0x6e14e0]
push ecx
push ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.00570720
mov ebx, 1
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x20]
mov byte [esp + 0x1cc], bl
push edx
call fcn.00599760
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x548827
call fcn.004fcb90
xor ecx, ecx
cmp eax, 8
setg cl
dec ecx
and ecx, 2
dec ecx
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [0x6c74ac]
test bl, 1
je 0x54884f
mov edx, dword [esp + 0x24]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x54884f
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x54884f
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1d0], 0xffffffff
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x548875
dec ecx
cmp ecx, ebp
mov dword [eax], ecx
jne 0x548875
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [0x6c77f8]
xor ebx, ebx
cmp eax, ebp
jbe 0x5488b3
mov eax, dword [esi + 0x114]
push ebp
push ebp
push 0x416
push eax
call edi
test eax, eax
jne 0x5488a8
push str.TB_DELETEBUTTON_failed
call fcn.00625950
add esp, 4
mov eax, dword [esi + 0x194]
inc ebx
cmp ebx, eax
jb 0x548887
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x4c], ebp
shr ecx, 7
test cl, 1
je 0x5488d2
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
jmp 0x548ebb
mov eax, dword [esi + 0x184]
mov ebp, dword [esp + 0x38]
imul ebp, eax
mov edx, dword [esi + 0x18c]
mov edi, dword [esi + 0x188]
lea ecx, [esp + 0xc0]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], ebp
call fcn.0040f270
push 0
lea ecx, [esp + 0xc4]
mov dword [esp + 0x1d4], 3
mov dword [esp + 0xc4], vtable.wxMemoryDC.1.0
mov dword [esp + method.wxMemoryDC.virtual_0], vtable.wxMemoryDC.0
call fcn.004fd130
lea ecx, [esp + 0xc0]
call fcn.004fd0f0
push 0xffffffffffffffff
push edi
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x1dc], 4
call fcn.004e5f30
mov eax, dword [esp + 0x40]
mov byte [esp + 0x1d0], 5
test eax, eax
je 0x54897a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x54897a
lea ecx, [esp + 0x3c]
call fcn.0056f900
mov edx, dword [esp + 0x1c0]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
cmp dword [esp + 0x10], 2
je 0x5489fa
lea eax, [esp + 0x7c]
mov ecx, esi
push eax
call fcn.004da560
push 0x64
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d8], 6
call fcn.004f0f30
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1d4], 7
call fcn.004f7eb0
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 6
call fcn.004dd920
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1d0], 5
call fcn.004dd920
lea ecx, [esp + 0xc0]
call fcn.004f62b0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x548a05
mov eax, dword [eax + 0x14]
mov dword [esi + 0x18c], eax
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test eax, eax
jne 0x548a88
mov eax, dword [0x8c9b44]
test eax, eax
je 0x548a33
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x548a33
mov ecx, 0x8c9b40
call fcn.0056f900
mov edx, dword [esp + 0x1c0]
push 0x8c9b40
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
push edi
push ebp
push ebx
call fcn.0054a2f0
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x18], ebx
test eax, eax
je 0x548a72
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x548a72
lea ecx, [esp + 0x3c]
call fcn.0056f900
mov edx, dword [esp + 0x1c0]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c4]
call dword [edx + 8]
xor eax, eax
mov ecx, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.00548590
mov eax, dword [esi + 0x160]
test eax, eax
mov dword [esp + 0x28], eax
je 0x548d55
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
cmp dword [ecx + 0xc], 1
jne 0x548d46
mov eax, dword [ecx + 0x24]
lea edi, [ecx + 0x20]
test eax, eax
jne 0x548aca
xor ebp, ebp
jmp 0x548acd
mov ebp, dword [eax + 8]
test eax, eax
mov dword [esp + 0x34], ebp
jne 0x548ad9
xor ebx, ebx
jmp 0x548adc
mov ebx, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x548b3a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x548b3a
mov eax, dword [esi + 0x184]
mov ecx, 0
sub eax, ebp
push 1
cdq
sub eax, edx
sar eax, 1
sets cl
dec ecx
and ecx, eax
mov eax, dword [esi + 0x188]
sub eax, ebx
cdq
sub eax, edx
mov edx, 0
sar eax, 1
sets dl
dec edx
and eax, edx
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0x2c]
add ecx, eax
push ecx
push edi
lea ecx, [esp + 0xd0]
call dword [edx + 0x104]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x548d1d
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x74]
add eax, 0x28
push eax
call fcn.0040d600
mov dword [esp + 0x74], vtable.wxBitmap.0
mov eax, dword [esp + 0x78]
mov byte [esp + 0x1d0], 8
test eax, eax
je 0x548b7c
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x548cde
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], vtable.wxImage.0
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 9
push ecx
mov ecx, edi
call fcn.004e6550
lea edx, [esp + 0x50]
mov byte [esp + 0x1d0], 0xa
push edx
push eax
call fcn.0054b980
add esp, 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d0], 9
mov dword [esp + 0x44], vtable.wxObject.0
call fcn.0056f8d0
cmp dword [esp + 0x10], 1
jne 0x548c6d
xor edi, edi
test ebx, ebx
mov dword [esp + 0x30], edi
jle 0x548c6d
xor ebx, ebx
test ebp, ebp
jle 0x548c5c
push 0x80
push edi
push ebx
lea ecx, [esp + 0x5c]
call fcn.004e3c80
test al, al
je 0x548c57
push 0xe
call fcn.004f2300
push 0xe
mov esi, eax
call fcn.004f2300
push 0xe
mov edi, eax
call fcn.004f2300
mov ebp, eax
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x28]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push ebx
lea ecx, [esp + 0x64]
call fcn.004e3760
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
inc ebx
cmp ebx, ebp
jl 0x548bee
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x30], edi
jl 0x548be8
lea ecx, [esp + 0x64]
call fcn.0040d050
lea edx, [esp + 0x50]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1d8], 0xb
mov dword [esp + 0x6c], vtable.wxBitmap.0
call fcn.004e6250
lea eax, [esp + 0x64]
lea ecx, [esp + 0x74]
push eax
mov byte [esp + 0x1d4], 0xc
call fcn.0040eca0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1d0], 9
call fcn.004dd920
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d0], 8
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.0056f8d0
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x10], 1
jne 0x548cf7
test eax, eax
je 0x548cec
mov eax, dword [eax + 0x14]
push ebx
push ebp
push eax
call fcn.0054a2f0
add esp, 0xc
lea ecx, [esp + 0x74]
push 0x8c9b40
push ecx
mov ecx, dword [esi + 0x190]
call fcn.00564f90
lea ecx, [esp + 0x74]
mov byte [esp + 0x1d0], 5
call fcn.004dd920
mov edx, dword [esi + 0x184]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x18]
add ecx, edx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x548aab
mov eax, dword [0x8c9b44]
test eax, eax
je 0x548d6f
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x548d6f
mov ecx, 0x8c9b40
call fcn.0056f900
mov eax, dword [esp + 0x1c0]
push 0x8c9b40
lea ecx, [esp + 0x1c4]
call dword [eax + 8]
lea ecx, [esp + 0x3c]
call fcn.0056f900
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [ecx + 0x14], 0
jne 0x548daf
push edi
push ebp
push ebx
call fcn.0054a2f0
add esp, 0xc
mov ebx, eax
mov edi, dword [esp + 0x2c]
xor ebp, ebp
cmp edi, ebp
je 0x548e19
call fcn.0051dee0
cmp eax, 0x190
jl 0x548e0f
mov eax, dword [esi + 0x114]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x88], ebx
mov ebx, dword [0x6c77f8]
push ecx
push ebp
push 0x42e
push eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], edi
mov dword [esp + 0x9c], edx
call ebx
push edi
call dword [0x6c7208]
jmp 0x548e3f
mov edx, dword [esi + 0x194]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], ebx
mov ebx, dword [0x6c77f8]
push ecx
push edx
push 0x413
push eax
mov dword [esp + 0x54], ebp
call ebx
call fcn.0051dee0
cmp eax, 0x1d6
jl 0x548e77
mov eax, dword [esi + 0x190]
cmp eax, ebp
je 0x548e5a
mov ecx, dword [eax + 8]
jmp 0x548e5c
xor ecx, ecx
mov eax, dword [esi + 0x114]
push ecx
push ebp
push 0x436
push eax
call ebx
cmp eax, ebp
je 0x548e77
push eax
call dword [0x6c7208]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d0], 4
call fcn.004dd920
lea eax, [esp + 0xc0]
lea ecx, [esp + 0x1c0]
neg eax
sbb eax, eax
mov dword [esp + 0x1d0], 0xffffffff
and eax, ecx
lea ecx, [esp + 0xc0]
mov dword [eax], vtable.wxMemoryDCBase.0
call fcn.004f5e70
xor ebp, ebp
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esi + 0x114]
and ecx, 0xffff
shl ecx, 0x10
and edx, 0xffff
or ecx, edx
push ecx
push ebp
push 0x420
push eax
call dword [0x6c77f8]
mov eax, dword [esp + 0x38]
lea edx, [eax + eax*4]
shl edx, 2
push edx
call fcn.00658ea0
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x2c], ebp
call fcn.00575430
mov ebx, dword [esi + 0x160]
mov dword [esp + 0x1d0], 0xd
test ebx, ebx
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], ebx
je 0x5490d0
add ebp, 8
mov dword [esp + 0x24], ebp
mov eax, dword [esi + 0xcc]
mov edi, dword [ebx + 8]
test eax, 0x4008
je 0x548f64
cmp dword [edi + 0xc], 2
jne 0x548f64
call fcn.0051dee0
cmp eax, 0x1d8
jle 0x5490bd
lea ecx, [ebp - 8]
xor eax, eax
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0xc]
xor dl, dl
dec eax
je 0x548f9e
dec eax
je 0x548f91
dec eax
jne 0x5490a9
mov edi, dword [edi + 0x10]
mov dword [ebp - 4], edi
mov byte [ebp], 4
mov byte [ebp + 1], 1
jmp 0x5490a9
mov eax, dword [esi + 0xcc]
shr eax, 7
test al, 1
jne 0x548fb1
mov eax, dword [esp + 0x4c]
mov dword [ecx], eax
mov ecx, dword [esi + 0xcc]
shr ecx, 8
test cl, 1
je 0x548fcc
mov eax, dword [edi + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x548fcc
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
mov al, byte [edi + 0x1d]
test al, al
je 0x548fdd
or byte [ebp], 4
mov al, byte [edi + 0x1c]
test al, al
je 0x548fe8
or byte [ebp], 1
mov eax, dword [edi + 0x14]
sub eax, 0
je 0x549094
dec eax
je 0x54908e
dec eax
jne 0x549094
mov al, byte [esp + 0x17]
mov byte [ebp + 1], 6
test al, al
jne 0x549035
mov bl, byte [ebp]
push 1
or bl, 1
mov ecx, edi
mov byte [ebp], bl
call fcn.0054a960
test al, al
je 0x54908a
mov edx, dword [esi]
push 1
push edi
mov ecx, esi
call dword [edx + 0x370]
mov dl, 1
jmp 0x549098
mov al, byte [edi + 0x1c]
test al, al
je 0x54908a
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x54908a
mov ecx, dword [esp + 0x24]
lea ebp, [ecx - 0x14]
mov ebx, dword [edi + 8]
cmp dword [ebx + 0xc], 1
jne 0x54908a
cmp dword [ebx + 0x14], 2
jne 0x54908a
push 0
mov ecx, ebx
call fcn.0054a960
test al, al
je 0x549077
mov edx, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [edx + 0x370]
mov dl, byte [ebp]
sub ebp, 0x14
and dl, 0xfe
mov byte [ebp + 0x14], dl
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x54904e
mov dl, 1
jmp 0x549098
mov byte [ebp + 1], 2
jmp 0x549098
mov byte [ebp + 1], 0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x17], dl
inc ecx
add ebp, 0x14
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebp
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [esp + 0x28], ebx
jne 0x548f3e
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x114]
push ebp
push ecx
push 0x414
push eax
call dword [0x6c77f8]
push ebp
call fcn.00658bf0
mov edi, dword [esi + 0x160]
xor eax, eax
add esp, 4
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], edi
je 0x549340
mov ebp, dword [edi + 8]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0xc], 3
sete bl
test bl, bl
jne 0x54912f
test dword [esi + 0xcc], 0x4008
je 0x549326
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x64]
push edx
push ecx
push 0x41d
push eax
call dword [0x6c77f8]
test bl, bl
jne 0x549168
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
sub edx, ecx
add eax, edx
mov dword [esp + 0x20], eax
jmp 0x549326
mov edi, dword [ebp + 0x18]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x38]
push ecx
mov eax, dword [edi]
push edx
mov ecx, edi
call dword [eax + 0x218]
mov dword [esp + 0x34], 0xffffffff
call fcn.0051dee0
cmp eax, 0x1d7
jl 0x5491d9
mov ax, word [esp + 0x38]
mov ecx, dword [esi + 0x114]
mov word [esp + 0xb2], ax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x20
push edx
push eax
push 0x442
push ecx
mov dword [esp + 0xb4], 0x40
call dword [0x6c77f8]
jmp 0x54927f
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
sub ebx, eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov byte [esp + 0x84], 4
mov dword [esp + 0x88], eax
mov byte [esp + 0x85], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
cdq
idiv ebx
mov ebp, eax
test ebp, ebp
jbe 0x549261
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x7c]
push ecx
push edx
push 0x415
push eax
call dword [0x6c77f8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x549231
mov eax, dword [esp + 0x2c]
push 0
push 0xffffffffffffffff
mov ecx, edi
mov dword [eax + 0x3c], ebp
inc ebp
imul ebp, ebx
mov edx, dword [edi]
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [edx + 0x228]
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
sub ebx, edx
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x18], eax
jns 0x5492b5
mov eax, dword [edi]
lea ecx, [ebx - 2]
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0x228]
mov dword [esp + 0x18], 2
test dword [esi + 0xcc], 0x4008
je 0x5492f1
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x44]
xor ebp, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x30], edx
call dword [eax + 0x334]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
lea eax, [ebx + edx*2]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
jmp 0x549302
mov ebp, dword [esp + 0x34]
cmp ebp, 0xffffffff
jne 0x5492fe
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov ebx, dword [edi]
push 0
push 0xffffffffffffffff
lea eax, [edx + 1]
push 0xffffffffffffffff
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, edi
push eax
push ebp
call dword [ebx + 0x228]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
inc ecx
mov dword [esp + 0x28], edi
test edi, edi
mov dword [esp + 0x10], ecx
jne 0x54910d
mov eax, ecx
mov ecx, dword [esi + 0xcc]
mov dword [esi + 0x194], eax
test ecx, 0x4008
pop edi
jne 0x54936d
mov eax, dword [esi + 0x174]
test eax, eax
jne 0x549386
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x340]
jmp 0x549386
test eax, eax
jbe 0x549386
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0x174], 1
call dword [edx + 0x340]
mov ecx, esi
call fcn.004d98d0
mov ecx, esi
call fcn.00549750
lea ecx, [esp + 0x90]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.005754a0
mov ecx, dword [esp + 0x1c4]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret